- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2018 06:33 AM
Hi All,
I need to create a pop up message on submittal of a service catalog item. I'm using the following script and it does nothing. Please help!
function onSubmit() {
alert ("Please submit form 104333");
}
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2018 08:25 AM
You could use something along these lines..
https://community.servicenow.com/community?id=community_question&sys_id=57c4cbe9dbd8dbc01dcaf3231f961940
Sample Script:
function onSubmit() {
var confirm = confirm("Did you submit form 104333?");
if (confirm == false) {
return false;
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2018 06:42 AM
Hi,
I was trying to do this the other day and gave up as I could not find a way. If all you want is to have an info displayed, you could use a confirm popup and get the user to click yes or No. That was the best solution I could find if wanting to do this via onSubmit
Regards
Pradeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2018 06:59 AM
Can you explain to me how you did this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2018 08:25 AM
You could use something along these lines..
https://community.servicenow.com/community?id=community_question&sys_id=57c4cbe9dbd8dbc01dcaf3231f961940
Sample Script:
function onSubmit() {
var confirm = confirm("Did you submit form 104333?");
if (confirm == false) {
return false;
}
}