Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7154 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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))"/>

Posted

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.

This topic is 7154 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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