Skip to main content
adzar2111
Participant
April 8, 2016
Answered

Add user specified link to a button

  • April 8, 2016
  • 1 reply
  • 387 views

I am creating a form for my team to use. Each team member has their own specific web page link to add to their form.

I would like each team member to be able to add the link to their page on the form, but for this link to be a clickable button (as opposed to just a text link).

Considered solution:

I create a free text field for each team member to enter their URL into. (Text is same colour as background so it is not visible)

I include some script which links a button to the URL in the free text field.

Is the considered solution possible? If so, can anyone help me on how to implement it?

Thanks

This topic has been closed for replies.
Correct answer try67

Sure, that's possible. As the MouseUp action of the button you can use the code (let's say the free text field is called "MyLink"):

app.launchURL(this.getField("MyLink").valueAsString);

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
April 8, 2016

Sure, that's possible. As the MouseUp action of the button you can use the code (let's say the free text field is called "MyLink"):

app.launchURL(this.getField("MyLink").valueAsString);

adzar2111
adzar2111Author
Participant
April 11, 2016

Thank you try67‌ that is perfect!