You are viewing limited content. For full access, please sign in.

Question

Question

Forms field web address

asked on August 26, 2019

I have a form that loads a web address via a lookup in to a table field. I was wondering if there is a way to make it a hyperlink that is click-able? At the moment it just comes through as plain text.

 

Thanks in advance

 

0 0

Answer

SELECTED ANSWER
replied on August 27, 2019

Hi Jonathan,

 

I've a same scenario as yours and I use JS to accomplish it.

Below is my code. Replace the ".link" with your field variable name.

 

$(document).on("lookupcomplete",function(){
  $('.link [type="text"]').each(function(e,el){
   var link=$(el).val();
    var link2=$(el).val();
    link2= "link"
   $(el).replaceWith($('<a href="' + link + '" target="_blank">' + link2 + '</a>'));


  });
  });

 

Thanks.

1 0

Replies

replied on August 27, 2019

Place a HTML Tag and then the site as the Value you receive from your look up.

 

<a href="lookupvalue">Text that the link shows as ie click here to view</a>

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.