So, can anyone share how I can place a custom butt...
# suitescript
m
So, can anyone share how I can place a custom button on a form, extract a field from the form when the form is accessed, and pass that field to a suitelet? I know this has worked in the past (I have code that does this) however, I can not get it working in my newest project. I have a user event script that, in the beforeLoad function, extracts the tranid from the Opportunity record and passes that value to a custom function declared in a client script, which in turn calls the suitelet, passing the tranid. The issue is sometimes it works as I expect and other times the tranid is for an entirely different record. It is, however, consistent in that when I press the button on a particular Opportunity record, the correct tranid value will be passed or the same incorrect value will be passed for that particular Opportunity. I know it is just something I am doing wrong but does anyone have a clue as to what that might be?