kuma_24 Posted June 16, 2005 Posted June 16, 2005 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
alazzaro Posted June 17, 2005 Posted June 17, 2005 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]&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
Martin Brändle Posted June 17, 2005 Posted June 17, 2005 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
kuma_24 Posted June 17, 2005 Author Posted June 17, 2005 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.
Recommended Posts
This topic is 7463 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 accountSign in
Already have an account? Sign in here.
Sign In Now