@pnetsuite beforesubmit is in a UE script. it’s only running AFTER the user has submitted the form, on the server side. so essentially, you can’t access any of that from a client script. you could move the logic into beforeLoad in the UE and save the values on the record in a hidden field or in some session variable and then use them in the client script for a saverecord entry point or something like that potentially.