Join our Ask A Trainer Sessions and Chat With our Experts!

Add personalization to a custom code email

SOLVED
Go to solution
NCMA-Bethesda
Rookie
0 Votes

have been googling, but can I add an optional text IF the dynamic content is found, and not if it is not found. For example something like this: print ", David" is the firstname david is in the contact. but print nothing if not found. [[ ", "firstname OR ""]] Thanks!

1 ACCEPTED SOLUTION
William_A
Administrator
0 Votes

Hello @NCMA-Bethesda ,

 

If you include the personalization via the Insert functionality (see the custom code personalization article for instructions and visuals), you can set it so there is no optional fallback. With no optional fallback included, this means if the field isn't applicable (i.e. they have no first name) then it won't show anything.

 

If you end up needing troubleshooting assistance for a custom code email, I'd recommend calling our phone support for a transfer to the Tier 2 custom code support team.


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

View solution in original post

1 REPLY 1
William_A
Administrator
0 Votes

Hello @NCMA-Bethesda ,

 

If you include the personalization via the Insert functionality (see the custom code personalization article for instructions and visuals), you can set it so there is no optional fallback. With no optional fallback included, this means if the field isn't applicable (i.e. they have no first name) then it won't show anything.

 

If you end up needing troubleshooting assistance for a custom code email, I'd recommend calling our phone support for a transfer to the Tier 2 custom code support team.


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

    Featured Article

    Use Sections to Build Email Campaigns Faster and Improve Engagement Rates

    Using Sections while designing your marketing email not only increases your own efficiency but helps you to deliver a more friendly, organized message. Check out some of the key benefits of using sections in email.

    See Article
  • Avatar

    Featured Thread

    Casual Conversations: What's your go-to playlist?

    If you listen to music while you work, share your playlist below so we can be inspired and maybe find some new music!

    View thread
  • Avatar

    Featured Thread

    Share Your Success Sweepstakes

    Share a success story from the last year and be entered for a chance to win great prizes!

    Enter now!
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 06
How to Grow Your List in Constant Contact
3PM - 4PM EST