AnsweredAssumed Answered

How to include link with image

Question asked by bkuppens on Sep 2, 2014
Latest reply on May 4, 2018 by npd

I'm using Nintex Forms (v2.3.2) for a task. I have a list item which contains a column with an URL which points to a document. I'm trying to include a download icon to the form instead of the link itself.

I tried adding an image to a label or a RTF control, no option to add a hyperlink to it.

I tried editing the HTML of the RTF control directly and added the following html code:

 

<a href="http://www.google.be/" target="_blank"><img src="/sites/nintex/SiteAssets/download.png" alt="" style="margin: 5px;"></a>

 

Basic HTML, right?

 

Well, this actually renders as 2 download icons in the form! The first one is just the image without a hyperlink. The second one is the image with the hyperlink to Google.

When you look at the HTML code, it changed into this:

 

<img src="/sites/nintex/SiteAssets/download.png" alt="" style="margin: 5px;"/><a href="http://www.google.be/" target="_blank"><img src="/sites/nintex/SiteAssets/download.png" alt="" style="margin: 5px;"/></a>

 

If I edit the code and remove the added pieces... it's just added back in.

 

Come on... really?

 

Is there any way to have a image with a hyperlink on a form without having to deal with this weird behaviour??

Outcomes