Custom Field in Link

ShaneK66
Participant

I'm having an issue with custom fields & putting them as the href an <a> tag.

 

I can render the value normally in a plain body html template, however, when adding it to a link, it doesn't work.

The link populates to a #. Anyone else having this issue?

 

This template works to display the custom field:

 

<html>
 <body>
  <h1>[[custom.surveylink]]</h1>
 </body>
</html>

 

 

 

However, this does not work:

 

<html>
 <body>
  <h1>Your Link is [[custom.surveylink]]</h1>
  <a href="[[custom.surveylink]]">Click Here!</a>
 </body>
</html>

 

 

 

 

Email Screenshot from 1st example (working, h1 tag, no link)

Screen Shot 2023-02-14 at 2.23.58 PM.png

 

Email Screenshot from 2nd example (not working, with link, clicking link does nothing)

Screen Shot 2023-02-14 at 2.21.53 PM.png

 

You can see that the value is there when being displayed in an h1 tag, but switches to a # when being used in a link. Could someone help me out with this?

1 REPLY 1
William_A
Moderator

Hello @ShaneK66 ,

 

I'd spoke with our higher level technical team, and they're suggesting calling in so they can troubleshoot your code with you live. To reach them, you can call our general support, and request a transfer to the Tier 2 custom code team.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
William A
Community & Social Media Support
  • Avatar

    Support Tips

    Social Media

    "There's a multitude of ways to engage your audience through us using your social platforms - via ads, social post metrics, email links, and more! " - Will

    See Article
  • Avatar

    Support Tips

    Call-To-Action Links

    "Target your most engaged contacts by creating a segment. Create a special offer or show your appreciation!" - Caitlin

    See Article
  • Avatar

    Support Tips

    Welcome Your Audience

    "Greet new contacts with one or more automated Welcome Emails depending on their interests or your business goals." - Nick

    See Article