Restrict the New button on a related list based on parent field value.

Brian Workman
Tera Contributor

In a related list, I would like to omit the New button if the status of the parent record (above the related list) is in a particular state. Essentially, If the record is in a "Closed" state, I would like to disallow users from opening new, associated records.

find_real_file.png

1 ACCEPTED SOLUTION

Joel Millwood2
Kilo Guru

Hi Brian,

This can be achieved by using an Omit new condition script. On the Justifications Related List, Right Click on one of the headers and select Configure > List Control. On the List Control Form add the Omit new condition Field, Configure > Form Layout add Omit new condition to the selected fields. One this field is added, you can then script your condition as required. 

 See Advanced list control with scripts in the Product Documentation for further information.

View solution in original post

1 REPLY 1

Joel Millwood2
Kilo Guru

Hi Brian,

This can be achieved by using an Omit new condition script. On the Justifications Related List, Right Click on one of the headers and select Configure > List Control. On the List Control Form add the Omit new condition Field, Configure > Form Layout add Omit new condition to the selected fields. One this field is added, you can then script your condition as required. 

 See Advanced list control with scripts in the Product Documentation for further information.