ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

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


#1

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?


#2

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


#3

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.