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

Retrieve baseURL

tommykack
Level 1
Level 1

Hi,

we are in the process of moving into a new infratructure and that means that we have users in two networks and they are using two different adresses to reach the same server i.e www.forms.se and www.forms2.se. We are calling forms from inside a base form by using gotoURL (...gotoURL("http://www.forms.se/staticforms/123.pdf")

My challenge is that I need to be able to retrieve the baseURL and concat that with adress to the form so both this adresses can be used.I have tried to use the doc.baseURL but I don´t get anything back. I have tried to use this code -

var oDoc = event.target;

var urlString = oDoc.baseURL;

Any ideas?

regards

Tommy

0 Replies