- i2iAlanaAsked on December 17, 2014 at 08:49 AM
I want to add a URL to the image label that will automatically open a new tab to the designated URL when you click it. Can you please advise on what code I should use to make this work. I have been attempting to do it with the form attached (bottom of the page widget option / Prezola).
- ShadaeAnswered on December 17, 2014 at 10:53 AM
To confirm, you would like whenever the images on your form is clicked, that is leads to another webpage.
Unfortunately this cannot be done using the checkbox widget. The only option would be to place the link in the image text box. The link would then appear below the image. As you have done with the Prezola image in the form.
Another option that you can use, is to use the Text field and enter HTML code to add your image and have them as hyperlinks.
Please view this sample form: http://form.jotformpro.com/form/43503903638960
<a target="_blank" href="http://www.prezola.com"><img alt="Prezola" src="http://www.springfair.com/g/2014/logos/bpl_logo_form.jpg" style="width: 210px; height: 125px;" />
The link that you would like your users to be directed to will go here
The link to your image would be placed here
You can put each image within their own paragraph tags (<p><a target="_blank" href="http://www.prezola.com" rel="nofollow noopener"><img alt="Prezola" src="//www.springfair.com/g/2014/logos/bpl_logo_form.jpg" style="width: 210px; height: 125px;" /></p>) To have mulitple images in the field link what is shown in the sample form.
I hope this helps, please inform us if you need further assistance.
- i2iAlanaAnswered on December 17, 2014 at 11:03 AM
I dont want to hyperlink the image at all. I would like the to keep its current function of a check box. I would like the label (as seen with the Prezola example) to link to the website that is listed. eg www.prezola.com should open a new tab to that website. Is it possible for that to happen in the label?
As if I use a textbox I would have to create 30+ image checkbox wigets just to include a website below each image. That would be very slow process in terms of alignment.
- ShadaeAnswered on December 17, 2014 at 12:41 PM
Thank you for clarifying what you would like to achieve.
After doing some test, unfortunately, it is not possible to have the label for the images as a link. Even though the box accepts the HTML code that is entered, the link does not become clickable within the widget.
Can you inform us of what exactly you would like to achieve with the option and we could look into seeing if there is a suitable work around.
- i2iAlanaAnswered on December 17, 2014 at 02:44 PM
What we want to achieve, is to have the image working as it currently is (a checkbox). But have a link under each image and title which allows our users to visit the website relating to that image. (as a 'find out more' for each option in the form).
Please let me know if you can think of a simple way to do this.
- JotForm SupportMike_TAnswered on December 17, 2014 at 05:26 PM
We can do this with an Image Picker widget instead.
The format is the following:
[Abraxas Cookshop <a target="_blank" href="http://example.com" rel="nofollow noopener" >Website Link</a>]http://www.springfair.com/g/2014/logos/bpl_logo_form.jpg
[Aria <br> <a target="_blank" href="http://example.com" rel="nofollow noopener" >Website Link</a>]http://www.springfair.com/g/2014/logos/bpl_indie_aria.jpg