Confirmation/modal on list view before action is taken from the list choice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
I have a task to create a list choice ui action to close the selected records (this is done).
I also need to have a confirmation/modal pop up before the action happens, which should show how many records are selected and how many of them will be ignored (as their state is already closed ).
I am stuck as I can get the numbers of records ( open and closed ) back from the script include, but can not pass it on the modal (created as ui page ). Any help would be really appreciated.
- Labels:
-
User Experience and Design
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
Hi @__he__
Are u calling your script include directly Then u should try this . Script Include can't be directly called Try this approch:- Script Include → Client → UI Page .
If u are using this approach only give me more details to help u.
Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday - last edited Wednesday
Hey,
Thanks for the offer.
I'm calling the script include in the client callable ui action, where the modal window pops up. Now my issue is, the <p> element in the modal window does not get populated with the return string from the script include that has the information ( selected / ignored ) - the return value is there as I tested with infomessage / logs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
Hi @__he__
reference Link:- Solved: About UI page processing scripts - ServiceNow Community
This will help u .
Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
