Clear the textbox in the make a copy scenario

if (scriptContext.type === scriptContext.UserEventType.COPY) {

            var currentRecord = scriptContext.newRecord;
            currentRecord.setValue({
                fieldId: ‘custbody_pb_shipment_id’,
                value: ‘ ‘
            }) }

Leave a comment

Your email address will not be published. Required fields are marked *