Embedded List
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2024 05:17 AM
Hi
How can we make embedded list mandatory or embedded list fields mandatory?
i am unable to make mandatory using setMandatory() in client script.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2024 05:21 AM
Hi @shivaadapa ,
Embedded lists are SORT OF like form fields in the fact that the related records have no value until they are saved.
They differ from form fields in that UI policies like mandatory, show/hide, read-only (as well as client scripts) don't apply.
- Mark the Mandatory checkbox in Dictionary Entry of the field.
- Then Create a Data Policy for the field.
For example:
- Open any incident form.
- Go to Form Layout and get any embedded list in the form (for example Task->Parent)
- Mark 'Assigned To' field in the Task table as Mandatory.
- Now, create a Data policy in Task(task) table for the field 'Assigned to'.
- Go to the incident form and try to save the form without providing a value in the 'Assigned To' of the Task table embedded list.
The below error message will pop up:
"Error MessageThe following mandatory fields are not filled in: Assigned to"
There is no OOTB (out of the box) configuration that can indicate a column(in list view) of an embedded list as Mandatory input.