Skip Navigation

[Resolved] Is it possible to combine two fields to display a mailto link?

This support ticket is created 7 years, 2 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Shane 7 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#572665

We have two fields in one of our forms:
updateauthorname (a single line field)
updateauthoremail (an email field)

Is it possible to have this info displayed in a template using a mailto link?

I've tried adding this to one of my cells:
[types field='updateauthorname'][/types]
but it doesn't generate what I'd like.

Is my approach not right or is it simply not possible to do this?

#572738

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Roger,

Thank you for contacting our support forum.

This is actually possible and your setup seems correct.

Would you mind providing me with a link to the frontend so that I can have a look at this ?

Thanks,
Shane

#572741

Hi Shane. Here's a test link where you can see it in action: hidden link

You want to be looking at the very bottom of the right sidebar below "Update Author"

#572744

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Roger,

For the email field add output = 'raw' because this field normally outputs the url as a mailto on its own.

Thanks,
Shane

#572749
raw.jpg

Hi Shane, I'm not sure where I need to add output = 'raw'

Is it in the Edit Post Field Group section? (see attached) Or somewhere else?

#572760

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Roger,

Sorry that I didnt provide an example but it should be [types field='updateauthoremail' output='raw'][/types]

Thanks,
Shane