- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2022 09:03 PM
Hi,
I need pop message on catalog item like " Please refer to the links for standard firewall service request . Hence request cannot be submitted." and this not summitted.This page just stay same page and just pop the msg on the top of the page.
Thank you.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2022 09:43 PM
Hi,
then do this
function onSubmit() {
// give variable name and the correct choice value
if(g_form.getValue('variableName') == 'global'){
alert('Please refer to the links for standard firewall service request. Hence request cannot be submitted.');
//Abort the submission
return false;
}
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2022 09:15 PM
Hi,
So what script have you started with?
is your validation based on some variable of form?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2022 09:41 PM
I need pop message on catalog item like " Please refer to the links for standard firewall service request . Hence request cannot be submitted." and this not summitted. This page just stay same page and just pop the msg on the top of the page.
I have one variable("Please select the type of firewall change required") on my catalog item ",
For this varible having 2 choice :- 1. standard
2. Global rule modification
I want work this functionality on for 2. Global Global rule modification choice.
Can u please help on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2022 09:43 PM
Hi,
then do this
function onSubmit() {
// give variable name and the correct choice value
if(g_form.getValue('variableName') == 'global'){
alert('Please refer to the links for standard firewall service request. Hence request cannot be submitted.');
//Abort the submission
return false;
}
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2022 10:29 PM
Thank you for helping