Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Retrieving the hostname url

Avatar

Level 4

Hi,

In our application the user opens the form online in the browser . But the URL keeps on changing based on the the different environments . How can i capture the URL at the initialize event of the form . I am looking for something like location.hostname in javascript . Is it possible in livecycle forms ?

Thanks

0 Replies

Avatar

Level 10

Could you elaborate on "But the URL keeps on changing based on the the different environments."?

Are you saying the user clicks on a URL such as http://help.adobe.com/en_US/enterpriseplatform/10.0/launchpad_config.pdf , the PDF opens in the browser and the URL changes?

Steve

Avatar

Level 4

Hi Steve,

Thanks for the reply .

"But the URL keeps on changing based on the different environments"

For eg - For development environment our application URL  is - http://localhost/ui-fw/tasks.htm

For testing environment it is - http://wfstest/ui-fw/tasks.htm

Pdf form is same and stored in the livecycle repository . The form is rendered and displayed in the browser to the user.

Now I want to capture the URL in the browser from the client side . As in whenver the user opens the pdf from, can I somehow give the URL in user's browser in an alert at the intialize event  to the user ?

I am still not sure whether I am able to make it clear 

Avatar

Level 10

Is the PDF being rendered in LiveCycle Workspace or are you calling LiveCycle Forms through an API?