ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

How to set df property on child table field

Hi All,
I am trying to set a field read only while clicking on another field in the child table.
please help me with your suggestions.
there are 2 custom fields in the child table one is disc and other one is prem.
when user click in disc at the same time how to set prem field read only

thanks in advance.
Capture7