In a UI policy, can we add gs.addinfomessage ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2018 03:10 AM
Thank You !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2018 03:20 AM
Yes, we can use gs.addinfomessage() in UI Actions.
Actually, UI Action can be used on Client side and Server Side.
https://docs.servicenow.com/bundle/jakarta-application-development/page/app-store/dev_portal/API_reference/glideSystemScoped/concept/c_GlideSystemScopedAPI.html(you will get an idea by seeing this information.)
Please Hit ✅Correct(If it is a correct solution) or Hit ✅Helpful(If it is useful).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2018 03:22 AM
Hello,
You can use addinfomessage in UI Policy.
Use script section and include g_form.addInfoMessage("YOUR MESSAGE");
Thanks,
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2018 03:23 AM
UI Policies run on client side spo you wont have access to gs there
Here is a list of messages ini servicenow mentioning what can be used whrere with syntax.
https://docs.servicenow.com/bundle/kingston-application-development/page/script/general-scripting/reference/r_ScriptingAlertInfoAndErrorMsgs.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2018 03:23 AM