How to make onchange script execute on list collector only when item is selected and not removed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2025 03:00 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2025 03:03 AM
sorry your requirement is not clear.
You want this on native or portal and what's your actual business requirement
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2025 03:26 AM
I need this in native.
Once a user selects an option from slush bucket, we need to display them a list of points associated with that selected option(HTML content).I have an onchange script that shows a popup when a option is selected from available list to selected. Now the issue is, I need to avoid the same onchange script from executing if any selected option is moved back to available list. I need not show the popup again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2025 03:32 AM
share the script you are using currently
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2025 06:08 AM
Could you please give me a sample code since mine is not working