How to make a field mandatory on a form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2015 10:08 PM
Hi Community!
I am new to ServiceNow. please help me in understanding this.
Regards
Waseem Ahmed
- Labels:
-
Personal Developer Instance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2015 08:12 AM
There are a couple of ways to do this, but the best, most flexible approach is UI policies. They allow you to evaluate certain conditions and then make fields readonly, mandatory, or visible based on those conditions. Here's a documentation link.
Creating a UI Policy - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2015 10:07 AM
Hi Mr.Waseem,
If you want to make the field mandatory for a particular condition you should go for UI policies like Mr Mark said.
another way of making the field permanently mandatory is
go the form(incident,change or problem)
Right click on the particular field which you want to make mandatory, click on "configure dictionary"
There you can see the check boxes for making field "mandatory","read only" or "Display".
just select the mandatory check-box and click on "update".
then that will mandatory at every time.
Regards,
KKSwamy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2015 10:16 AM
You could also use client script, with g_form.setMandatory('field_name'); or, with my personal favorite, data policies that are converted to UI Policies, but I'm an absolutists, and only siths deal in absolutes.