Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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

3 Replies

Avatar

Former Community Member

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

Former Community Member

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