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: "Referral source"
description: "A simple form with a free-text Other option."

sections:
  - id: section_1
    title: "Your details"
    fields:
      - id: referral_source
        type: single_select
        label: "How did you hear about us?"
        options:
          - "Search engine"
          - "Social media"
          - "Friend or colleague"
          - "Advertisement"
        # Adds an Other option with a free-text input.
        allow_other: true
        validators:
          - required

    next: done