choice lists - how to removeOptions from choice list options in list view.

shaunlingham
Kilo Explorer

I would like to know how to limit the options in the choice list visible in a list view. I have managed to do this on the form with the onload client script but this is not reflected in the list view.

6 REPLIES 6

Rajesh Mushke
Mega Sage
Mega Sage

Hi Shaun,



There is no option to remove choice value from the list view. However as alternative you can restrict the update on list edit operation(ACL) and restrict the access.



Refer:


http://wiki.servicenow.com/index.php?title=Using_Access_Control_Rules




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

divya mishra
Tera Guru

Hey Shaun,



Write a On Cell Edit client script in this case and use addOption/RemoveOption function



post me your feedback


Please Hit ✅Correct, ��Helpful, or ��Like depending on the impact of the response


Have a lovely day ahead




Regards,


Divya Mishra


Nope, the oncelledit event is not fired....



find_real_file.png


here's my script


Note the jslog is not showing on the list debuggerfind_real_file.png


divya mishra
Tera Guru

Hey Shaun,



Try an alert instead.



Regards,


Divya