Hi everyone, I need a script that when I open a sa...
# general
a
Hi everyone, I need a script that when I open a sales order creation it places a customform as default, the setvalue doesn't work.
newRecord.setValue({
fieldId: 'customform',
value: 88
});
but i test with other field like "memo" and work, what i need to do? thanks!!!
f
function pageInit(context){
let rec = context.newRecord;
if(context.type==='create'){
rec.setValue({
fieldId: 'customform',
value: 88,
ignoreFieldChange: false
});
}
}