Form Issue Hide/show select form field using depends_on

I am fetching the data from other doctype field type select and I want a field to be shown only if a particular value is set.
I have used Depend on and wrote the following doc.field_name ==“value”; and It is not working
what is missing?

You can try it,
eval:cur_frm.doc.field_name === 'value'

2 Likes