Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

fmxslt:send_email including field values


This topic is 7100 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I am trying to include field values in the subject area of the fmxslt:send_email function. This is a problem as the function does not allow the value-of because the value-of function is used to perform the fmxslt:send_email function. Is there any way to get field values into this email function?

thanks,

nick

Posted

Hey Nick,

When calling the send_email function use a variable for the first argument. This way, you can use your field values to generate your first argument. Here's how you could do it:

<xsl:variable name="email_info">

<xsl:text disable-output-escaping="yes">[email protected]?

[email protected]&amp;subject=</xsl:text>

<xsl:value-of select="fmrs:field[name='subject']/fmrs:data"/>

</xsl:variable>

<xsl:value-of select="fmxslt:send_email($email_info, 'This is the body')"/>

That should do it for you,

Adrien

Posted

That's one way. Another way is to use the concat() function. See these two threads:

http://www.fmforums.com/threads/showflat.php?Cat=0&Number=155075&an=0&page=2#155075

http://www.fmforums.com/threads/showflat.php?Cat=0&Number=146640&an=0&page=4#146640

Posted

Thank you both for the replies. Everything works. I was on the right track with the concat(). Just didn't have time to figure out the proper syntax.

This topic is 7100 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.