Is there an OOTB way to remove a choice list option in list view (not form)

ericgilmore
Tera Guru

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?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@ericgilmore 

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.

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

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@ericgilmore 

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.

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

@ericgilmore 

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.

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