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
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.");}}
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.
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.");}}
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.
Copy link to clipboard
Copied
What app does you use on the iPad?
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​
Copy link to clipboard
Copied
Try the PDF Expert by Readdle.