We have an Acrobat 9 form that gets posted to 3 different web sites.
I want to create a button that will execute a java script to open a web link based on the URL of the PDF. This way, one PDF can be loaded on all 3 web sites, but can execute different web links based on where it is located.
1. Determine url address and capture it to a hidden field (at a Document level script?)
2. Create button based on value of #1 hidden field:
if web address = a --> go to link 1
if web address = b --> go to link 2
if web address = c --> go to link 3
Can someone point me in the right direction?
I would probably also only compare the string up to the .pdf in case you use a querystring or in case they do somehow.
Jim Healy
FormRouter, Inc.
Check out our FREE Advanced Acroform Toolset:
http://www.formrouter.com/tools
Jim Healy, Founder & CEO FormRouter Inc.
Chapter Leader AUG RTP NC
http://www.formrouter.com