June 16, 200520 yr 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
June 17, 200520 yr 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
June 17, 200520 yr 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
June 17, 200520 yr Author 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.
Create an account or sign in to comment