Can Parameters be Added to Button Functions
Hi, is it possible to add parameters to a button function? For instance, if I have button created beforeLoad and a client script that executes the function, can I pass as a function argument data from the user event script to the client script? Right now, it seems when I do form.addButton and set the functionName property, the function name is just text and I can’t add any arguments.
Yes, I believe this works :
functionName : ‘buttonFunction(‘ + var1 + ‘)’
You should be able to pass multiple variable values separated by ‘,’ although I believe you will be limited to only passing string/number values using this type of format

Great, thanks for the tip!

It worked perfectly by the way! Thanks again!