Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to make related list as mandatory

IceIronDragon
Tera Guru

Hoe can I make a related list mandatory ?

I tried ui policy but cannot find the option to do so .find_real_file.png

5 REPLIES 5

Pranesh072
Mega Sage

You have to write a BR to check the records on related list table and according to your condition abort the update operation.

or 

you can create a onsubmit client script with glideajax (xmlwait) to  check the record in relatedlist table.

 

https://community.servicenow.com/community?id=community_question&sys_id=cc6687e1db1cdbc01dcaf3231f96...

Hi , 

My condition is where in if there are no records auto populated in related list then it is mandatory to fill the related list .

 

You need to use an Before Update Business Rule and Abort the Form Submission as required blow with a condition

find_real_file.png