I am fairly new to scripting and trying to see why my script is not working when I use it as a user event script (beforeload). I use the same script as a client script triggering in pageinit() and it works as expected. But I have to edit the record and save it in order to trigger the script. Ideally, I would want the script when the record is loaded or read.