How to show and hide fields on button click in sales order form

Hello ,
I need to show custom fields on sales order form when button is click

Initially all the custom fields will be hidden and on button click which I have via JavaScript I need to show those custom fields . How can we do that

@saba_ilex,

You can use the frm.toggle_display('fieldname', val) method to hide the fields val can be either true or false

Thanks,
Makarand

1 Like