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.

Using variables in fmxslt:send_email function

Featured Replies

I am trying to take what information is provided to the send_email function and make it dynamic (pulling data from a submitted form). I chose to use the concat function...

xsl:value-of select="concat('fmxslt:send_email(', "'", '[email protected]?subject=', $netid, '&[email protected]', "','", 'email_template.xsl', "',", '/,true())')"/

While the concat works (creating the correct output), the information is displayed to the screen - unprocessed by FMserver. I tried setting the string to a variable "send_email_now" and then use xsl:value-of select to call it out. This, also, caused the function to simply display on screen (unprocessed).

Is what I am trying to do impossible?

Brian

The result of concat is a string, that's why your whole fmxslt:... is displayed. Probably you want to do this:

<xsl:value-of select="fmxslt:send_email(concat('[email protected]?subject=',$netid,'&[email protected]'),'email_template.xsl',/,false())"/>

Martin

P.S. You can find the definition of the XPath functions like concat() at

W3C XPath 1.0 Recommendation, Core Function Library

A very good book about XSLT and XPath is: Michael Kay, XSLT : Programmer's Reference, 2nd ed., Wiley Publishing, ISBN 0-7645-4381 -4

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.