The CreatorCon Call for Content is officially open! Get started here.

Embedded List

shivaadapa
Tera Expert

Hi

How can we make embedded list mandatory or embedded list fields mandatory?

i am unable to make mandatory using setMandatory() in client script.

1 REPLY 1

Community Alums
Not applicable

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.

  1. Mark the Mandatory checkbox in Dictionary Entry of the field.
  2. Then Create a Data Policy for the field. 

For example: 

  1. Open any incident form.
  2. Go to Form Layout and get any embedded list in the form (for example Task->Parent)
  3. Mark 'Assigned To' field in the Task table as Mandatory.
  4. Now, create a Data policy in Task(task) table for the field 'Assigned to'.
  5. 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.