7px
04/04/2022, 12:55 AMehcanadian
04/04/2022, 1:49 AMDaniel Lloyd
04/04/2022, 2:27 AM7px
04/04/2022, 5:27 AMDaniel Lloyd
04/04/2022, 5:30 AM7px
04/04/2022, 5:51 AMDaniel Lloyd
04/04/2022, 5:53 AMMike Robbins
04/04/2022, 4:24 PM&e=T
to the URL and editing the record anyway. As ehcanadian mentioned above, using a workflow with the lock record action would work and no scripting required.7px
04/05/2022, 2:33 AMMike Robbins
04/05/2022, 12:28 PMNElliott
04/06/2022, 8:56 AMif (context.type === context.UserEventType.EDIT) {
redirect.toRecord({
type: record.Type.VENDOR_BILL,
id: context.newRecord.id,
isEditMode:false
});
}
You will want to preface this with any logic you need to determine that you do not want it editing.
(you could also use context.newRecord.type for "type" above)