ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

How to hide child doc fields?


#21

In custom field depend on just use check_fieldname.
if you must be whole number field in Item Doctype, Then fetch this field in child table.


#22

The check_fieldname present in UOM Doc.
please can you provide any sample code?


#23

fetch is numeric from UOM

Hide and show Numeric value field


#24

Thanks @mainul
But everytime manually i have to select that check box(Is Numeric).
Scenario like:
If you check Purchase Receipt Item/any child doc, Item wil have default uom(eg:-Nos).
Supose, By default the check_fieldname(Must be Whole Number ) of UOM(Nos) is selected. In this case automatically custom_field should appear otherwise should not appear.
Please check the attached screen shots.



#25

check fetch from.
if doesn’t work.
set on event on item select.


#26

fetch from is : uom.must_be_whole_number in Purchase Receipt Item doc. Right?


#27

HI @mainul
Thanks for your support. I resolved that issue!