Got a 'How do I' question? Join our live 'Ask a Trainer' session happening 11 am to 4 pm EST for instant help and pro tips!

Custom Field in Link

ShaneK66
Rookie
0 Votes

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
Administrator
0 Votes

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

    Featured Article

    The Power of Direct Subscriber Feedback: Measuring Customer Satisfaction

    Today, understanding customer satisfaction is crucial. How can you know if customers are happy with your products or services?

    See Article
  • Avatar

    Featured Thread

    The Unintentional Humor of Spam Emails

    Have you ever wondered who or what is on the other side of a spam email? Take 10 minutes out of your day and watch this lighthearted video!

    View thread
  • Avatar

    Featured Thread

    How to Create Images of Multi-Page PDFs

    Discover the process of transforming PDFs with multiple pages into image files directly on Constant Contact.

    See Article
Updates
Just Getting Started?

We’re here to help you grow. With how-to tutorials, courses, getting-started guides, videos and step-by-step instructions to start and succeed with Constant Contact.

Start Here

73% of SMBs express doubt that their marketing strategy is effective. Does this sound familiar? Read our Small Business Now Report to learn how you can tweak your strategy to see better results.

Go read our article
Upcoming Webinars
JAN 30
Chart Your Course to Capture Leads and Own Your Contacts
2PM - 3PM EST