I'm sorry for asking such question, but can I disa...
# general
t
I'm sorry for asking such question, but can I disable a field using userevent suitescript ?
d
Sure, you can use beforeLoad trigger and use context.form oblect to find a field by its id and then but fieldObject.disabled=true;
Copy code
const button = context.form.getButton({id: buttonId});
if (!button) {
    return;
}
button.isDisabled = true;
t
thanks @Dmitry Masanov. I've done my code using the following
var ABC_field = context.form.getField({id: lib.ROSTER_FLD.BBB_CHCKBOX});
ABC_field.updateDisplayType({displayType: 'disabled'});
👍 1