Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Confirmation/modal on list view before action is taken from the list choice

__he__
Tera Contributor

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.

3 REPLIES 3

namanajain
Kilo Guru

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

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.

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