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 comprehensive rating example."

sections:
  - id: section_1
    title: "Section 1"
    fields:
      - id: question_1
        type: rating
        label: "Question 1"
        min_label: "Low"
        max_label: "High"
        validators:
          - required
          - type: min
            value: 1
            message: "Use a rating of at least 1."
          - type: max
            value: 5
            message: "Use a rating of no more than 5."
          - type: expression
            expression: "data.question_1 >= 3"
            message: "Please provide a rating of at least 3."

    next: done