Condition in doctype Mandatory Depends On (JS)

Hello,

I have added below line in child table rate field’s Mandatory Depends On(JS) in order to make it mandatory conditionally.

eval:doc.custom_csp_calculation_type==“Manual Rate”;

It didnt work so is it required to that it should be only one doctype? I means Childtable and main doctype is different thats it is not working?? We create childtable and doctype separately thats why i am asking…

Try,
eval:doc.custom_csp_calculation_type===“Manual Rate”;

@pm23 try this
eval:parent.custom_csp_calculation_type==“Manual Rate”;

image

@Jeel

Replace “” instead of ””

It is not work I am using client script instead. Thank You for your support.
@Jeel and @Praveenkumar