
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2024 03:16 PM
ver. Vancouver, CSM
I've run into a new puzzle. I would like to remove an option from a choice list on a list view. On a form, it's as simple as g_form.removeOption('fieldname', option value); Not so on a list. There doesn't appear to be a corresponding g_list.removeOption('fieldname', option value); for list views.
Has anyone else run into this or solved this one yet?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2024 07:12 PM
not possible on list view
Ways to handle
1) use onCell edit client script and inform user not to select that value
OR
2) use before update BR and stop the form submission using current.setAbortAction()
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
‎12-16-2024 07:12 PM
not possible on list view
Ways to handle
1) use onCell edit client script and inform user not to select that value
OR
2) use before update BR and stop the form submission using current.setAbortAction()
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
‎12-17-2024 06:55 PM
Thank you for marking my response as helpful.
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