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.

Set email body from submitted field

Featured Replies

I would like to have FileMaker send an email to a specific person when a new record is created (or modified).

My code right now looks something like this:

-input name="-edit" type="submit"-

-xsl:attribute name="value">Save Record

-xsl:variable name="send_mail" select="fmxslt:send_email('[email protected][email protected]&subject=Reservation Added','New Reservation Added for:')"/-

-/input-

What I would like, is to put the Title of the Tradebook after the line "New Reservation Added for:".

So, I want to mix the static text with a field submitted and have it emailed.

Possible? If so, how?

tia

Bryan, you can't embed the e-mail part in the form. Think of what would happen when the XSLT engine transforms your code - the email part would already be interpreted before the user would be able to do anything with the form.

BTW I don't see a closing xsl:attribute tag.

You have to split your code into two pages. page1.xsl has the form and calls page2.xsl as action. Every action to the database (except -process) has as result an XML tree. This tree you can transform on page2.xsl and therein send the e-mail with <xsl:variable name="send_mail" select="fmxslt:send_email('[email protected][email protected]&subject=Reservation Added',concat('New Reservation Added for: ',XPath_to_title_of_the_tradebook))"/>

  • Author

Would you have a basic example of this? I would like to see the 2 xsl templates with a database of 2 fields (Title, Description).

Where Title would be the subject, and Description would be concatenated with the body.

Have the email read, "The following email is for you:" and then the Description field.

On the web, have an input form to create a new record, and when the record is submitted, send an email to whomever with the Title as Subject and Description concatenated with the a static phrase.

With an example like that, I could figure out the rest. I just need a working starting point. I will then post that in my examples page (if you don't mind helping me with this).

BTW: You have been very helpful to everyone on this forum. It's great having someone brilliant helping the rest of us.

  • Author

Thank you Martin. You are brilliant! I appreciate your help. I will be posting you solution, and my web site soon, as well as how I have incorporated that in my solution.

  • Author

I have the information on my xsl help page now.

http://www.neenah.k12.wi.us/~bvd/xsl

I will be modifying this page with comments, but as of today (4/21/2005) it is available for other to see.

Thanks again Dr. Braendle!

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.