Show/Hide a child table column based on a specific condition

Hi,

Suppose a child table has 3 columns A, B, C. If the value of a field in the parent form is ‘X’ then all the 3 columns i.e A,B,C will be visible in the child table. If the value is ‘Y’ then only A,C will be visible in the child table.

How can this be done?

Hi,
Refer https://erpnext.org/docs/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples/make-read-only-after-saving
change readonly to hidden and the condition frm.doc.your_field_name to check for the value.
Thanks

HI @Ranjith
Referred link not working!!
For every row of child table, Is it possible to hide/show custom field when Item Code uom(Must be Whole Number) is selected.

Thanks,
Ragh.