I have a user event on beforeLoad, I want to disa...
# suitescript
s
I have a user event on beforeLoad, I want to disable a field on the screen, I'm not sure exactly how to do it . I think it's something like this .updateDisplayType({displayType: ui.FieldDisplayType.INLINE} Any idea ?
j
updateDisplayType({displayType: serverWidget.FieldDisplayType.DISABLED});
s
yes but I have to pass the field. I'm trying to disable the field memo, Where do I put memo in this ? memo.updateDisplayType({displayType: serverWidget.FieldDisplayType.DISABLED}); ????
j
context.form.getField({id: ‘memo’}).updateDisplayType({displayType: serverWidget.FieldDisplayType.DISABLED});
s
Looking good. LEt me try
j
lots of documentation and examples in SuiteAnswers