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.
i have table inside a doctype table means it will be a child table like which have product name , sub product name price status (Pending by default, Approved and Expired)
i want when the sttaus is Approved and Expired make the field read only not the when status is pending
how to hanlde this i have tried
eval:((doc.status==“Approved”) || (doc.status==“Expired”))
eval:(doc.status == “Approved”) || (doc.status == “Expired”)
You must use a client script for this; better. because i beleive the depends on condition eval mostly does work on the doctype field states and not child tables states.
I am not a software engineer, but has some experience in customisation of erpnext for my own company. May, in the loop we have @NCP can give a better suggestion.