How to get the text name of a button and pass this on
I have seen many posts about this but nobody seems to have a clear solution. I have a database with many buttons that just pass text along to another field (via set field). Instead of creating a different script for each button created, I would like the script itself to read the button name and pass that along to the Set Field.
Right now, what I have doesn't work. I have the button's script paramater as "getActiveLayoutObjectName"
And in my set field is to set the Script Paramater........ What am I missing here?
"What am I missing here?"
Clicking a button doesn't make it the active layout object which is why this function doesn't return what you expect.
The only option that works here as far as I know is to pass the buton name as literal text.
If the button is named "Main Menu", then you type in "Main Menu" in the parameter box.