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

Question

Question

Shorten a hyperlink address

asked on July 30, 2018

I need to take a long hyperlink address and shorten it for applicants to click on to agree to Terms & Conditions.  I have successfully created this type of a set up in Word, but when I then transfer the shortened hyperlink into the html field in Laserfiche Forms, the link does not work as hoped.  

Any tips?

0 0

Answer

SELECTED ANSWER
replied on July 30, 2018 Show version history

In HTML, a link is added like this:

<a href="http://www.duckduckgo.com">DuckDuckGo</a>

So you have the link address in the href= value and the link text in the element value. and in the form it looks like:

DuckDuckGo

3 0
replied on July 30, 2018 Show version history

Thanks, Bert.  By looking at yours, I thought I had it.  But, not quite.  Yet.  I think we're close.  Here's what I have: (edited, see my last comments)

0 0
replied on July 30, 2018 Show version history

When I separate it out for troubleshooting, I can see that yours doesn't have this middle part that mine has where it says, " target="_blank".  That's the only thing I can see as different.

<a href="https://treetime.ca/article.php?artid=10&amp;artcatid=1&amp;linkid=benefitsHeader"

target="_blank"

>https://treetime.ca/article.php?artid=10&amp;artcatid=1&amp;linkid=benefitsHeader</a>

0 0
replied on July 30, 2018

Okay, got it!  All I did was remove the unnecessary middle part that my Forms added.  The " target="_blank" part!  Then it worked using your example!

Thanks, Bert!

0 0
replied on July 30, 2018

You probably could use "target=" instead of "href=".  my code is a generic html code and I did not open forms to test it

replied on July 30, 2018

The  target="_blank" is supposed to make the browser open the page in a new window or tab.  Not sure why it is breaking your link.

1 0
replied on August 1, 2018

Oh!  So that is important!  I just tested it.  Filled out half the form, then accessed the link, and then tried to go back to my form, however, when I got back to my form, everything I had typed into the form had disappeared.  So this is VERY important!

Okay, I've reworked the hyperlink and it is working now with the extra piece!  Thanks for your help!

<p><a href="https://treetime.ca/article.php?artid=10&amp;artcatid=1&amp;linkid=benefitsHeader" target="_blank">https://treetime.ca/</a><br></p>

 

0 0

Replies

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

Sign in to reply to this post.