I'm using nlapiResolveURL() to open a record in edit mode. I was previously using this function to make a copy of a record and open it in edit mode. When it was set up that way I was able to pass parameters in the url. Now that I'm just opening the record itself in edit mode and not creating a new record and opening it in edit mode, I cannot pass parameters in the URL. A custom button is triggering a client script that has nlapiResolveURL() opening the purchase order record in edit mode. Is there a way to pass something along with this url to communicate to a user event script that this has been opened in edit mode through a custom button and not the normal edit button? In the before load I can check to see that the request is null and that works. However, I need to know in the before submit. I can set a field in the before load that flags it as a custom edit and not a regular edit, but then if the user were to cancel or close the browser window that flag would still be set and I need it not to be. Any ideas?