- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2018 02:06 AM
How to create an alert box with "YES" or "NO" Button in incident Form
Need to create an alert box in incident form for some condition(ex: if caller company is XYZ then while submitting the form alert window should come )!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2018 02:21 AM
Hi Pragati
YOu need a confirm box not alert. Create a on submit client script with your company condition and add the below script
confirm("company is xyz...");
This will give you ok and cancel button. You can code it according to your requirement.
-Harsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2018 02:11 AM
Hi Pragati,
What is your exact requirement?
Can you explain the scenario?
Why not create a GlideDialogWindow onSubmit if company is xyz and in that UI page have 2 buttons
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
‎06-22-2018 02:16 AM
While submitting the incident if caller company is "xyz" pop up window should come with "yes" or "no" button.
If someone select "yes" form will get submitted
If someone select "No" then again it will redirect to same page without submission.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2018 02:30 AM
Hi Pragati,
You can go ahead with confirm box. You will only have OK and Cancel as options. values yes or no is not possible.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
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
‎06-22-2018 02:21 AM
Hi Pragati
YOu need a confirm box not alert. Create a on submit client script with your company condition and add the below script
confirm("company is xyz...");
This will give you ok and cancel button. You can code it according to your requirement.
-Harsh