I am across a requirement where I need to make some fields mandatory upon insertion of new row in the embedded list according to the phase/state. Anyone worked on embedded list, please guide me.

Ruturaj Shirsat
Mega Expert

The requirement is like

1. There are four columns available on editable row of the embedded list

2. The first column is a drop down and If I select first column value, immediately second column (text box) and third column(which is also a drop down column) of same editable row should be mandatory to fill.

3. All this should be checked on the given state/phase of the form record.

1 ACCEPTED SOLUTION

larstange
Mega Sage

Hi Ruturaj



You will be able to do this via a data policy on the table of the embedded list - you will however not be able to see the mandatory fields visually in the embedded list it self, as UI policies are not evaluated in list views - you will however get a Data Policy Exception when saving the form, if the mandatory fields have not been filled out.


So it is not so user friendly.


The data policy it self, can include values from the parent record in its condition to determine when the fields should be mandatory.


Here is an example where I have created a simple table which has a reference to the incident table, and one of the fields are mandatory, based on a condition which looks at both the parent incident, and the embedded table it self.



find_real_file.png


View solution in original post

3 REPLIES 3

Chuck Tomasi
Tera Patron

Hi Rutaraj,



This level of control is not available from an embedded list. You MIGHT be able to use a data policy to enforce the mandatory fields when the record is saved.



http://wiki.servicenow.com/index.php?title=Data_Policy


larstange
Mega Sage

Hi Ruturaj



You will be able to do this via a data policy on the table of the embedded list - you will however not be able to see the mandatory fields visually in the embedded list it self, as UI policies are not evaluated in list views - you will however get a Data Policy Exception when saving the form, if the mandatory fields have not been filled out.


So it is not so user friendly.


The data policy it self, can include values from the parent record in its condition to determine when the fields should be mandatory.


Here is an example where I have created a simple table which has a reference to the incident table, and one of the fields are mandatory, based on a condition which looks at both the parent incident, and the embedded table it self.



find_real_file.png


Anurag Tripathi
Mega Patron
Mega Patron

Check Mike Allen's reply on this



https://community.servicenow.com/message/850557#850557


-Anurag