Can a suitelet set a read only transaction record ...
# suitescript
c
Can a suitelet set a read only transaction record field?
b
how was it made read only
c
Set as disabled in the UI
b
script should be able to set that
c
that's what I thought but it's not.
Copy code
const onRequest = (scriptContext) => {
    let so = record.load({type: record.Type.SALES_ORDER, id: 5231411});
    so.setValue({fieldId: 'custbody_sent_to_3pl', value: true});
    so.save();
}
¯\_(ツ)_/¯
b
change to field's display type to normal and try again