• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Editable Text Field - Hyperlink

New Here ,
Jan 18, 2019 Jan 18, 2019

Copy link to clipboard

Copied

Is there anyway of using an editable text field, linked with a hyperlink as a way of launching the web browser to this page?

So that for example if 'http://www.google.co.uk' was entered it would then go to this page, and then changed to 'http://www.adobe.com' it would then go to this page?

I'm unsure if this is possible, any help would be greatly appreciated.

e

TOPICS
PDF forms

Views

768

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 18, 2019 Jan 18, 2019

Copy link to clipboard

Copied

Sure, you can do that with a custom validation script.

The code for it would be something like this:

if (event.value) {try {app.launchURL(event.value);}

catch (e) {app.alert("Error opening the web-page.");}}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 18, 2019 Jan 18, 2019

Copy link to clipboard

Copied

Just to confirm the layout in reference;

I want to be able to enter a link into the 'GoogleMapLink' Text Field, and using the button launch a web browser to go to this webpage.

Untitled.jpg

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 18, 2019 Jan 18, 2019

Copy link to clipboard

Copied

Ah, you want to use a button, that's even easier... (and it will work better).

In that case use this code as the MouseUp event of the button field:

var v = this.getField("GoogleMapLink").valueAsString;

if (v) {try {app.launchURL(v);}

catch (e) {app.alert("Error opening the web-page.");}}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 03, 2019 May 03, 2019

Copy link to clipboard

Copied

Is anyone aware of how I can make the submit button work on an iPad?

I've had no issues when using the link on a PC/Mac, however when I try and press the button on an iPad it simply does nothing.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 03, 2019 May 03, 2019

Copy link to clipboard

Copied

What app does you use on the iPad?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 03, 2019 May 03, 2019

Copy link to clipboard

Copied

I'm currently just using the basic adobe reader, are there any other apps which would allow this to work? Bernd Alheit​

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 03, 2019 May 03, 2019

Copy link to clipboard

Copied

LATEST

Try the PDF Expert by Readdle.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines