Rules Tokens Discovered

Apr 21, 2012 at 4:55 PM
Edited Apr 21, 2012 at 4:58 PM

So after much toiling I finally fingered out how to include the form data in my email rule(s).
I set my Custom Form, called Appointment, to store data and then I created a new Rule.
The rule contains a single Event (When a custom form for types (Appointment) is submitted.) and the Action sends an email.

Now to the goods...

Edit the Action and use the following tokens for your form fields/content (replace Appointment with the name of the Content Type called in your form and FieldName with the name of the specific field in your form):

For Input Fields and Enumeration Fields use: {Request.Form:Appointment.FieldName.Value}

For Text Fields use: {Request.Form:Appointment.FieldName.Text}

For Date Fields use: {Request.Form:Appointment.FieldName.Date}

When using DateTime the Time can be displayed using: {Request.Form:Appointment.FieldName.Time}

Hope this helps someone... :)