Alexie_Rose
Apprentice

Display 'Click Here' Link to Form

Jump to solution

We have a form using the Classic Form layout that we would like to display a link that shows 'Click Here' instead of the entire link.

 

Right now we have a rich text control where we have inserted the link which is connected to the item properties of the list.

 

When we click on the link in the form it just takes us back to the form. Is there something else that we need to do in order to get the link to work?

0 Kudos
Reply
16 Replies
kunalpatel
Collaborator

Re: Display 'Click Here' Link to Form

Jump to solution

@Alexie_Rose try using calculated control

0 Kudos
Reply
Alexie_Rose
Apprentice

Re: Display 'Click Here' Link to Form

Jump to solution

Hello Kunal,

 

We were using the calculated control, but we're not able to display 'Click here' in place of displaying the entire link

0 Kudos
Reply
kunalpatel
Collaborator

Re: Display 'Click Here' Link to Form

Jump to solution

@Alexie_Rose try to use below in your formula:

 

<a href=\"<INSERT YOUR LINK HERE>+ "\" target=\"_blank\" ><CLICK HERE - DISPLAY TEXT></a>"

 

Text in red needs to be replaced with your hyperlink and display text.

0 Kudos
Reply
Alexie_Rose
Apprentice

Re: Display 'Click Here' Link to Form

Jump to solution

@kunalpatel This is what I tried and the form would not load, did I do something wrong? I tried to replace the variable link with an actual link as well and the form still would not load

 
 
 
 

2021-08-13_8-10-18.png

 
0 Kudos
Reply
kunalpatel
Collaborator

Re: Display 'Click Here' Link to Form

Jump to solution

@Alexie_Rose try below formula, I've tested and it works for me:

 

"<a href=\"https://www.google.com"+"\" target=\"_blank\" >Click here</a>"

0 Kudos
Reply
Alexie_Rose
Apprentice

Re: Display 'Click Here' Link to Form

Jump to solution

@kunalpatel The formula you sent me works, but I'm not able to get it to work when I insert my variable. It takes me to an error page instead of directing me to the link stored in the variable. Is there something I need to change to make it work with a variable instead of a directly keyed in link?

0 Kudos
Reply
kunalpatel
Collaborator

Re: Display 'Click Here' Link to Form

Jump to solution

@Alexie_Rose have you tried removing "" before and after the variable?

0 Kudos
Reply
Alexie_Rose
Apprentice

Re: Display 'Click Here' Link to Form

Jump to solution

@kunalpatel I tried removing the quotes before and after the variable and the form stopped loading

0 Kudos
Reply
Aleximo
Contributor

Re: Display 'Click Here' Link to Form

Jump to solution

I think your variable you insert isnt correct.

 

Couldnt you just use a lookup or how / where are you trying to get the right "url"?

0 Kudos
Reply