Help needed on Read Only Depends On

Hello community, having a small problem where my field’s ability to be Read Only depending on another field is not working.

So, there’s “Status” field with multiple options, and one of the is “Closed”. I want my fields to be “Read Only” after the status is changed to Closed. I have inserted the following to my field’s “read only depends on” but it’s just not working:

eval:doc.status = ‘Closed’

I’m on v13 of both Frappe and ERPNext. The problem I’m having is no matter what the status is, the field became read only always.

Thanks guys!

Hi @iMoshi,

Which Doctype?

Thanks.

Well, any doctype. This case, Issue doctype :slight_smile:

Hi @iMoshi,

Please check it.
It’s working from my side.

eval:doc.status=='Closed'

I try for description.

It’s writeable

It’s Read Only.

Again check, reload and try it.

Thank You!

2 Likes

Thank you! This fixes it :sweat_smile:

So, the spaces were messing things up? Got it now.