These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Form submission through javascript to a URL

jmadding
Registered: Sep 17 2008
Posts: 4

I have a pdf that is designed to be run off of a client computer through Reader and not from a website or server. I am trying to figure out how to get a button, using javascript, to send the user to a url that is filled with variable data. The data is to be retrieved from fields that the user fills in.

I am not able to get any commands to work to launch a browser window populated with the dynamic URL. any thoughts?

My Product Information:
Reader 8.0, Macintosh
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
What have you tried so far, exactly? Can you give a sample URL that you'd like to construct?

George
jmadding
Registered: Sep 17 2008
Posts: 4
Well... I am on to a more detailed question for this post. I think we have figured out how to build the url variable, and what we need to figure out now is how to have the 'open web link' action to use a variable as it's data. We just aren't sure what syntax would tell reader that the data is a variable it needs to use instead of actually trying to go to a literal URL with that name of the variable.
I hope that makes sense.
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
You should be looking at the app.launchURL JavaScript method, as opposed to trying to use an "open web link" type of action. Be sure to URI encode any data you want to include in the URI.

George