Displaying an image and text with a hyperlink in the result.
-
Hello! a phenomenal plugin. I need a picture and a text with a hyperlink to be displayed after the calculations, depending on the data received. I implemented this using the “html content” field with
<div class="image-container"></div> <div class="link-here"></div>
Then I created two Calculated Fields in which I wrote the code:
(function(){ var result = fieldname18; if(result > 0) { jQuery('.link-here').html(' look <a href="https://www......">Click Here</a>'); } return result; })()
and
(function(){ var result = fieldname18, url = ''; jQuery('.image-container').html(''); if(result > 0) url = 'http:///.jpg'; if(url != '') jQuery('.image-container').html('<img src="'+url+'">'); return result; })()
As a result, I have an image displayed first and text is written under it.
Is it possible to implement so that the text is immediately after the image, and not under it?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Displaying an image and text with a hyperlink in the result.’ is closed to new replies.