Any help welcome. I have no idea how to do this.
Not sure what you mean by "I want to set this url behind a button"... Do you mean you want to add the URL as plain-text on the page? If so, you can use a read-only text field, but why not just use the button itself to both show the URL and launch it when clicked?
I dont want to show the url. I just want to pack it into a button. But the url is not always the same. Its generated of to fields. So I dont know how to get this into a button.
You can do it in the button's Mouse Up script. For example, if the fields composing the URL are URL1 and URL2 you can use something like this:
var fullURL = "http://www." + this.getField("URL1").valueAsString + ".com/" + this.getField("URL2").valueAsString + ".html";
For now I have created a field where the url is displayed. To address this fild I just have to change "URL1" with the name of the field? Right?
Hope the images help to explain it. I have to fileds creating a url. The url is now at text field. But I want this url in the green button.
Want you create a URL and use this URL in a button?
yes, I dont want to show the url. But the url is generated of to fields and not always the same url.