How to get all the choice values in a script

anusha60
Kilo Expert

Hi,

I am trying to get all the choice option values in a client script to verify whether the choice field has a particular choice option in it,if not I want to create that option dynamically.

Could someone suggest me,whether we have any method to get the list of choice values in script.

Thanks in advance......

Thanks,

Anusha.

5 REPLIES 5

Willem
Giga Sage
Giga Sage

For anyone looking to get the choice options available for a field that is supported by (Catalog) client script and works in Service Portal/Mobile:

https://community.servicenow.com/community?id=community_article&sys_id=0bff52e91b0620901e579979b04bc...