How to set the value of Custom Form before loading a new transaction record?
“Data can be manipulated for records created in beforeLoad user events.” This is from the following help pages:
But the following line has no effect:
context.newRecord.setValue('customform', '257'); A logging line immediately before this one is recorded properly so I am confident that the line is executed..
I don’t think you can change the form via User Event as it requires a redirect but here’s a solution: