Jump to content

Sweet Alert behind the forms


Mohammed Nasman

Recommended Posts

  • 1 year later...
On 5/7/2018 at 3:11 PM, Mohammed Nasman said:

Hello,

 

  I'm trying to use Sweetalert library to show better alerts, but when I try that, it became behind the form, as following:


function click(sender, e, eOpts)
{
     swal("Good job!", "You clicked the button!", "success");

}
post-1329-0-51984600-1525689625_thumb.png
 
I'm using build 1421
 
 

post-1329-0-51984600-1525689625_thumb.png

how to dynamically pass title and message parameter to this code?{

swal("Good job!", "You clicked the button!", "success");
swal({
    title: 'Demo',
    html: 'Account Information not available in Demo mode',
    type: 'info',
    showConfirmButton: true,
    showCancelButton: false,
    confirmButtonText:  'OK',
    cancelButtonText:  '',
    animation:  true,
    allowEscapeKey:  false,
    confirmButtonColor: '#BDBF37',
    cancelButtonColor: '#d33',
    timer:  0,
    allowOutsideClick:  false
});

}

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...