how to hide "No Records selected" alert on click of list button

pavan_yakkala
Kilo Contributor

Hello,

 

I have a requirement like on click of list button from list layout without selecting any record from the list layout, i have to proceed further.

but an alert "No Records Selected" forcing me to select the record.

 

I want to proceed without this alert..it means on click of list button, first record has to selected by default and should proceed further without any alert.

 

Can any one help on this.

 

Thanks in Advance,

Pavan.

16 REPLIES 16

Why not create a context menu ?


Because a context menu requires 2 clicks. A button just one.


Michael Ritchie
ServiceNow Employee
ServiceNow Employee

Sorry for resurfacing an old thread, but I wanted to provide an answer.   If the UI Action action name value starts with "sysverb" then the "No records selected" prompt will be suppressed.   So set your UI Action action name to something like sysverb_dosomething and it should work without the validation.



I hope this helps.


Thanks for the tip Michael, worked like a charm!


Is there a way to customize the message or put up my own and capture the results.


For example I have a server side UI Action on the list where I want to put up the message.


"Are you sure you want to proceed"


Buttons would be yes or cancel


and then the UI action would act accordingly.