Skip to main content

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.
form.yaml
version: 1
title: "Example form"
description: "A simple form with two sections."

sections:
  - id: section_1
    title: "Section 1"
    fields:
      - id: question_1
        type: short_text
        label: "Question 1"
        validators:
          - required

    # After this section is submitted, move to section_2.
    next: section_2

  - id: section_2
    title: "Section 2"
    fields:
      - id: question_2
        type: short_text
        label: "Question 2"
        validators:
          - required

    # After this section is submitted, the form is complete.
    next: done