Sprout Email allows Craft Object Syntax for the object that is available when an event is triggered, in the same way you would use the Sections Title Format field.
If your form is submitting an Entry the dynamic object being submitted is an EntryModel
and all values from that EntryModel
will be available to several of your fields in Sprout Email. To access those values you can use one of two syntaxes:
- Shorthand Object Syntax
{title}
or {customFieldHandle}
- Object Syntax
{{ object.title }}
or {{ object.customFieldHandle }}
- this longer form can also be used in more advanced twig constructs like {% if object.title %}
Both of these syntaxes are comparable to how you would use {{ entry.title }}
or {{ entry.customFieldHandle }}
in your templates.
This is described with a few more examples on the Dynamic Values page of the docs