Documentation Index
Fetch the complete documentation index at: https://docs.declarativeforms.com/llms.txt
Use this file to discover all available pages before exploring further.
If you have not created a form before, start with Create a form.
version: 1
title: "Example form"
description: "A simple form that sends completed submissions by email."
sections:
- id: section_1
title: "Section 1"
fields:
- id: question_1
type: short_text
label: "Question 1"
validators:
- required
- id: question_2
type: email
label: "Question 2"
validators:
- required
next: done
connections:
- type: email
# Send the completed submission to this inbox.
to: "ops@example.com"
# Subject and body can use submission data.
subject: "New submission from {{data.question_1}}"
body: "Reply to {{data.question_2}}."
include_responses: true
- type: email
# Use when to only execute this connection if the expression is true.
to: "escalations@example.com"
subject: "Escalation from {{data.question_1}}"
body: "This submission requires follow-up."
when: "data.question_1 === 'urgent'"
Email connections run when the submission is completed.