Hi all does any one know how to hide line item fie...
# suitescript
d
Hi all does any one know how to hide line item field through scripting ?
b
hiding an essential mandatory field is evil
are you sure you need it hidden
d
Yes battk I am sure I want to hide it
b
use the form from a user event beforeLoad to get the sublist and then the field and then update the display type to hidden
j
Sample to hide the rate for instance
Copy code
scriptContext.form.getSublist('item').getField('rate').updateDisplayType({displayType: serverWidget.FieldDisplayType.HIDDEN});