Display Depends Upon JS

i have been trying to apply this line of script in “Display Depends Upon” which is :
“doc.payment_type == “Cheque”;”

what it does is that, on which ever the field i have applied this script to, completely disappears from the doctype in preview.

i dont know whether this is a glitch or a bug because it has worked for me in other doctypes. Plus, i have client scripts applied onto list view and form view of this certain doctype. Any kind of guidance will be appreciated. or please let me know if i am doing something wrong.

eval:doc.payment_type == “Cheque”
1 Like