Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7253 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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.

Posted

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.

This topic is 7253 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.