How to add a popup message on a list view

Alessia Russo
Tera Expert

Hi everybody! I would show a popup with an alert message if a user is tring to make an action from a list view with the box of 'actions on selected row'. So after it shows this pop up the user can't continue those action.

 

For ex:

The user selects 3 records, in one of this records there's a field with a certain choice than he souldn't be able to go on. So after he selects, from the 'action on selected row' below on the list, a specific action, this popup shows saying like "This X is not a control, you can't create/do this action" and doesn't let make the action.

 

How could I do it? With a script include? Is there a glide that I can use for it?

Someone can show me a draft of how the script should look?

Hope you can help me,

Thanks

10 REPLIES 10

@Alessia Russo 

you can show pop-up on list ui action but not on click of that "Action on selected rows"

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar if the popup is not possible, is it possible to show an alert message on the list view?

@Alessia Russo 

you can use query BR and show the info message using gs object

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar ok, and I should write the script for make appear the message only on selected records? I tried to use before but it show me the message even if I did not select nothing. There's a method (as onclick or else) in the script I could use for my issue? Thanks

@Alessia Russo 

nope query BR will run whenever table list is opened

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader