Page 1 of 1

Button that takes URL field value and goes to website

Posted: Thu Jun 23, 2016 10:38 am
by Dalkeith
Forum

I have a form with a field that holds URLs

It would be nice if there was a a button next to the field on the form that when pressed would navigate in a browser to the URL ideally in a new tab of the browser that they have open.

Is this or something like this possible and could anyone give me some guidance.
I am only starting to get into the design of forms

Thanks
PS using nuBuilder more and more

Re: Button that takes URL field value and goes to website

Posted: Fri Jun 24, 2016 3:59 am
by admin
Dalkeith,

This is how you open another window..http://www.w3schools.com/jsref/met_win_open.asp

And you put it on a button like this..
Capture.PNG
Steven

Re: Button that takes URL field value and goes to website

Posted: Fri Jun 24, 2016 11:26 am
by Dalkeith
Brilliant thanks will try it out

Re: Button that takes URL field value and goes to website

Posted: Fri Jun 24, 2016 12:46 pm
by Dalkeith
That worked great the only issue I have is that if the field does not reference 'http:/' as well as the url it combines the url in the url field to the existing url in the browser and creates a new window with the joint url.

Re: Button that takes URL field value and goes to website

Posted: Mon Jun 27, 2016 12:53 am
by admin
Dalkeith,

Did you read the url link I attached earlier?

Steven

Re: Button that takes URL field value and goes to website

Posted: Tue Jun 28, 2016 11:23 am
by Dalkeith
Thanks Steve - I thought I did but clearly I missed something I will reread.

Re: Button that takes URL field value and goes to website

Posted: Mon Jul 04, 2016 1:42 am
by admin
.