How to Use Alert like pop up in Business rule. - ServiceNow Community

How to Use Alert like pop up in Business rule.

balaji_prusty1
Mega Guru

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

12 REPLIES 12

tanumoy
Tera Guru

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


Thanks Tanumoy for quick responce.



Update/Submit/Save are global UI action. We cannot define there ...it may effect other.


Abhineet Singh
Tera Expert

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.


1234567.JPG123456.JPG


Please Hit Like & Mark Helpful If it is informative from your perspective.



Regards


Abhineet


Thanks Abhineet for the responce, but I dont want create another button in the form ...which make confuse to user.