What would cause a User Event script beforeLoad function to run 3 times while loading the page. I have a log that gets repeated 3 times
b
battk
07/20/2022, 8:39 PM
client script loading the record again
a
alien4u
07/20/2022, 8:53 PM
No proper context filtering, beforeLoad triggers on record view,create,edit,delete(not sure) pretty much always… without proper context filtering in your beforeLoad it would triggers multiple times…
n
Nicholas Williams
07/21/2022, 12:40 PM
@alien4u i have the code wrapped in the below:
Copy code
if (scriptContext.type == 'view' || scriptContext.type == 'edit') {