January 13, 200521 yr Still learning so please bear with me. I was wondering if there is a way to capture the "text" on a button, and then use that text to set a global text field. Ex: I create a button and give it Text "Dog". Is there a way to capture the Text "Dog" to be used in a script and assigned to a global field. Forgive me if this is a ignorant question but I am still learning. Thanks in advance for any help. Dan
January 13, 200521 yr Dan: As you've got to assign a script to the button, you can put a Set Field[] statement into the script to do what you want. (Of course, you've got to do this manually for each button/script. You can't capture the text itself, unless the text isn't really the button's text, but rather a global field superimposed on the button.) -Stanley
January 13, 200521 yr To do what you wanted to originally do is not possible, but there are other methods that way work for you, if you are willing to change a few things around. Much like what Stanley has already mentioned, you can use the Merge Field to assign the text on the button to whatever field value you want. Then you can use that field in your script. You can also dynamically change the text on the button if you care to.
January 14, 200521 yr Author Thanks for the help everyone. I appreciate your suggestions and will change my script as recommended.
January 17, 200521 yr I think what you are looking for is passing a parameter which is possible to do. When you define the button and choose the script for it, assign it a parameter (variable)-- in this case the name or text of the button. Then use the parameter in the script. "Get(ScriptParameter)" is the function you will use within a script step.
Create an account or sign in to comment