We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to make onchange script execute on list collector only when item is selected and not removed?

shanmathi1809
Tera Contributor

Hello all!

I have a variable on RITM which is a list collector.

I have a requirement that On change of list collector variable(available to selected) a popup should appear and based on the selection(yes/ no) the list collector should be modified
if yes is selected-no change
if no is selected- pop the latest added option

 

this all should not work if any option is moved from selected to available. 

 

Thank you in advance

5 REPLIES 5

@shanmathi1809

please share your script and what debugging did you perform?

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