Sweet alert for Onsubmit client Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2018 09:04 AM
Hi,
I am trying to display alert using swal onsubmit client script. I tried the below code. But the issue is, it popup the message and stayed for 10 to 15 seconds and disappears.
function onSubmit() {
swal({
title: 'Message',
html: true,
width:'100px',
text: 'Please: <a href = "www.google.com" target="_blank">Click here</a>',
});
}
So, I modified the code as below which doesn't submit at all even 'OK' is clicked
function onSubmit() {
swal({
title: 'Message',
html: true,
width:'100px',
text: 'Please: <a href = "www.google.com" target="_blank">Click here</a>',
},function(){
});
}
I am looking for something alert stays up until 'OK' is clicked and submit the form.
Did anyone try this before? Please let me know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2018 12:42 PM
Hi Sindhu,
Try this.
function onSubmit() {
swal({
title: 'Message',
html: true,
width:'100px',
text: 'Please: <a href = "www.google.com" target="_blank">Click here</a>',
confirmButtonText : 'OK',
});
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2018 12:44 PM
function onSubmit() {
swal({
title: 'Message',
html: true,
width:'100px',
text: 'Please: <a href = "www.google.com" target="_blank">Click here</a>',
confirmButtonText: 'OK',
});
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2018 12:53 PM
Hi Sindhu,
Try this:
function onSubmit() {
swal({
title: 'Message',
html: true,
width:'100px',
text: 'Please: <a href = "www.google.com" target="_blank">Click here</a>',
confirmButtonText: 'OK',
});
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2018 12:56 PM
Hi Sindhu,
Try this:
function onSubmit() {
swal({
title: 'Message',
html: true,
width:'100px',
text: 'Please: <a href = "www.google.com" target="_blank">Click here</a>',
confirmButtonText: 'OK',
});
}