here what it is doing after the field is changed: ...
# suitescript
p
here what it is doing after the field is changed: if(context.fieldId == 'custbody_pi_vendor') { var rec = context.currentRecord; var pivendor = rec.getValue({fieldId: 'custbody_pi_vendor'}); rec.setValue({ fieldId: "entity", value: pivendor }); }