Is there a way to remove the new button on a related list based on a Form's Field Value?

Navaneeth1
Tera Guru

Could someone please let me know if there's a way to remove the new button from related list based on a Form's Field Value?

find_real_file.png

Referring the image above (also attached with this post), I need the new button on the related list to be made in-accessible once the "Status" field on the form is updated to "Completed" choice.

The related list (Tasks) only shows records associated with a particular form.

I noticed that omit New button can be used in list control but I can't seem to pass the field value from the form to the condition script.

Is there a way to access the "Status" field value from the form and pass it into the Omit new Button Script condition?

Or is there any other way to make the New Button unavailable after that Field value change?

Thank you in advance!

 

 

1 ACCEPTED SOLUTION

parent is your form object.

if (parent.status == <value>)
true; // Show the New button
else
false;

Please update the value of status and try. 

For your reference:-

find_real_file.png


Thanks & Regards,
Vasanth

View solution in original post

6 REPLIES 6

parent is your form object.

if (parent.status == <value>)
true; // Show the New button
else
false;

Please update the value of status and try. 

For your reference:-

find_real_file.png


Thanks & Regards,
Vasanth

@Vasantharajan N ,

 

It worked!! Thank you so much for your help! I sincerely appreciate the effort you put in!! 🙂