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 11:15 PM
You can try using an onChange client script on the field you want to validate. Or else, try onSubmit client script and provide proper conditions under which your script should run using condition binder in client script form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 10:01 PM
Thanks Manjrekat;
I used onsubmit client script and it works fine with message.
Thanks a Lot!!!!!!!!!!!!
Balaji Prusty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 10:20 PM
Hi Balaji,
M glad it worked out for you. Could you please mark answer as correct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2016 07:13 AM
I am not getting any option to mark it as correct. Only Helpful Yes/NO.
In Action also no option .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2016 07:19 AM
Use this in a business rule.. Tried and tested
var msg='haha';
gs.addErrorMessage('<script>var t=setTimeout(function(){var test = confirm("' + msg + '");if(!test){return false;}},500);</script>' + msg);