Adding the autoresponse action in the formspree.json
file has the same effect as adding the Autoresponse plugin in the Formspree dashboard.
Make sure you have a field titled email
so Formspree knows what email to send the autoresponse to. Formspree will return an error if you don't provide an email in one of these fields.
Formspree.json configuration
Key | Type | Description |
---|---|---|
type |
String | Must be autoresponse |
fromName |
String | Autoresponse email from name |
subject |
String | Autoresponse email subject |
message |
String | Autoresponse email message sent to visitors |
template |
String | The name of the template to use. The template should already exist on the project. |
Example
{
"forms": {
"support": {
"name": "Request Form",
"actions": [
{
"type": "autoresponse",
"fromName": "Support Team",
"subject": "Request received",
"message": "We received your call! We'll get in touch soon."
}
]
}
}
}
Validation rules
The create support ticket action adds the following validation rules implicitly:
Field | Validation Rule |
---|---|
email |
Type is email |
email |
Required |