- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 07:01 AM
Hello, I would like to enforce mandatory fields on some fields when other fields are set to a certain value. Can I do this without scripting?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 07:04 AM
Hello - you can use UI policies for this:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 07:22 AM
Hi @DeIvory Gordon ,
Configure UI Policy:
Go to System Definition > UI Policies and create a new UI policy.
Define Conditions:
In the UI Policy, define the conditions under which you want to make certain fields mandatory. For example, if you want to make the "Description" field mandatory when the "Category" field is set to "Hardware," set the condition as follows:
- Table: Select the relevant table.
- Condition: Configure it based on your requirement, e.g., [Category] [is] [Hardware].
Define Action:
In the same UI Policy, define the action to take when the condition is met. To make a field mandatory, set the "Mandatory" property to "True" for the field you want to enforce as mandatory.
- Action: Select "Mandatory."
- Field: Choose the field to make mandatory, e.g., "Description."
- True: This sets the field as mandatory when the condition is met.
Thanks, - Anand

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 07:59 AM
@DeIvory Gordon UI Policy is the feature using which you can address this requirement. Please refer to this detailed documentation https://developer.servicenow.com/dev.do#!/learn/courses/utah/app_store_learnv2_scripting_utah_script... which talks about UI Policy with great examples.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 07:59 AM
@DeIvory Gordon UI Policy is the feature using which you can address this requirement. Please refer to this detailed documentation https://developer.servicenow.com/dev.do#!/learn/courses/utah/app_store_learnv2_scripting_utah_script... which talks about UI Policy with great examples.