This blog explains about how to mark specific fields as mandatory on any form in service now ?
Scenario : I want to mark 'First Name' field as mandatory on a form, that means without entering the value for 'First Name' field and user tries to submit the form, should display required validation message
Steps to accomplish
- We can achieve this by writing UI Policies on a form.
- Launch the form where you want to to write the UI Policies
- Right click on form banner menu -> Personalize -> All -> Click on 'UI Policies' tab -> Click on New
- If it is 'Eureka' version, click on 'Default' link
- Choose the table name
- Click on 'New' on 'UI Policy Actions' section as highlighted below.
- Select the field name, and set 'true' to mandatory column.
- Save , launch the form, you will notice '*' symbol for mandatory fields.
Very nice article,keep sharing it more.
ReplyDeleteThank you.
ServiceNow Developer Online Training