Skip Navigation

[Resolved] Unable to create hyperlink in notification email for a dynamic url

This thread is resolved. Here is a description of the problem and solution.

Problem:

Setup hyperlink in email notification with custom field values, The text wraps well in the test email but breaks down in the real email.

Solution:

I suggest you check these:

1) check those custom fields values, remove all HTML p tags

2) You can output the custom field raw values with output="raw" attribute, for example:

[types field="message-to-endorser" output="raw"][/types]

Relevant Documentation:

https://toolset.com/documentation/customizing-sites-using-php/functions/#textfield

This support ticket is created 3 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by himanshuS 3 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1980387
#1980551

Hello,

There are some HTML p tags in the "breakdown text" you mentioned above, they will break the HTML a tag.

I suggest you check these:
1) check those custom fields values, remove all HTML p tags
2) You can output the custom field raw values with output="raw" attribute, for example:
[types field="message-to-endorser" output="raw"][/types]

More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#textfield
‘raw’=Display raw data stored in DB.

#1981451

My issue is resolved now. Thank you!