How to Use Alert like pop up in Business rule.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2016 10:22 PM
I have a business rule written to validate some filed in Change Module while updating. If it found false then it should show pop up alert and when user click on OK then it will re-direct to same page/filed.
But I dont have any option to show pop like "alert" in client script. I cannot use addinfomessage or setError as these are just to show info.
Is there any approch/soution to uset "alert" kind of message in Business rule/Server side script ?
Thanks in Advance.
Balaji Prusty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2016 10:39 PM
We cannot do it as a Business rule is a Server side code, and pop up runs on client side. Can't you do it with a onSubmit client script and use confirm there.
Client Scripts - ServiceNow Wiki Section 3.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2016 10:46 PM
Thanks Tanumoy for quick responce.
Update/Submit/Save are global UI action. We cannot define there ...it may effect other.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2016 11:11 PM
Hi Balaji Prusty,
You can use Update/Submit/Save UI Action for this by overriding it for the particular table you want to use ex. like I created a new UI action for Incident and it is working as required with alert.
Please Hit Like & Mark Helpful If it is informative from your perspective.
Regards
Abhineet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2016 09:24 PM
Thanks Abhineet for the responce, but I dont want create another button in the form ...which make confuse to user.