How to determine if a field value is a valid choice?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2016 11:30 AM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2016 11:32 AM
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.