How to determine if a field value is a valid choice?

MG Casey
Mega Sage

Whenever a value is saved to a choice field that is not a part of the normal choices, its text will appear in blue when the form reloads.

How do you determine is a field value is invalid through scripting?

Obviously, I could gliderecord the "sys_choice" table and see if the value appears in there, but is there a more efficient method?

1 REPLY 1

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi MG,



I don't think there is a easy way except scripting as you mentioned.


However you will have a control for the choice field where in you can ignore the values which doesn't exist in the system when the data comes via import set.


Creating New Transform Maps - ServiceNow Wiki   (Refer for choice action)



Please let me know if you have any questions.