A Payload site, ready to clone

Placeholder: concentric circles in violet

Form emails can depend on the visitor’s answer

What changed

A form’s emails go to fixed addresses, so a contact form with a “reason” list needed one form per reason, or everything to one inbox. Now each email, and the acknowledgement to the visitor, has an optional “Only if”: a field of the form, “is” or “is not”, and a value. A submission sends every email whose condition holds, and those without one. The field is picked from the form’s own fields and, for a list, the value from its options; saving refuses a condition on a field the form no longer has or a value it can’t take. The addresses stay fixed: the visitor only chooses among them.

Where to see it

The Contact page: pick “Starting a project” or “A question about a feature” as the topic and one more email goes out, to its own address, besides the usual notification. In the admin, Forms → Contact form → Emails: the second and third emails are “Only if What is it about? is …”. Developers: the @omitsis/apex-plugin-forms README, “Emails on a condition”.