Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

fmxslt:send_email including field values

Featured Replies

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

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

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

  • 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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.