- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2015 12:54 PM
I want to identify the mandatory fields (something like g_form.isMandatoryFieldEmpty) in a Client Script to add a field message (error message) for all such fields when left blank on the form. Can you think of a way to iterate through the fields on the form and check if they are mandatory but empty?
Note: I can hard code the required fields in the script to add field message. But I am trying to identify an alternative way where I should identify only the mandatory fields to add field message so that script need not be updated again in future when a new field is made mandatory.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2015 01:49 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2015 01:05 PM
You might be better served by using a UI Policy. If any mandatory fields are left blank, the system will pop-up a message letting the user know which fields need to be populated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2015 01:09 PM
Hello Michael, Thank you for taking a look at my question. Even though we are able to implement it using UI Policy, I have a special requirement to display a custom error message underneath the mandatory field when left blank so I am taking this approach.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2015 01:49 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2017 03:20 AM
This helped me today. Thanks for sharing.