> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanova.io/llms.txt
> Use this file to discover all available pages before exploring further.

# RSVP Form component

> Defines the structure for questions within the RSVP flow. This component is referenced by the RSVP Component.

## Overview

The **RSVP Form Component** allows event organizers to collect additional information from invitees and their guests.\
It provides flexibility to ask custom questions — such as meal preferences, attendance confirmations, or notes — alongside the main RSVP form.

Each form item includes a **question**, its corresponding **answer field type**, and optional settings like whether the question is **required** or **visible to guests**.

This schema supports up to **3 questions per RSVP form**, ensuring brevity and user-friendly submissions.

## Properties

| Property          | Type      | Required | Description                                                                                            |
| :---------------- | :-------- | :------- | :----------------------------------------------------------------------------------------------------- |
| **question**      | `string`  | ✅ Yes    | The question text displayed to the invitee (1–1000 characters).                                        |
| **answer**        | `object`  | ✅ Yes    | The answer configuration, referencing `_base_form.json#/properties/questions/items/properties/answer`. |
| **askFromGuests** | `boolean` | No       | *(Deprecated)* Whether to ask the same question to guests. Default: `false`.                           |
| **isRequired**    | `boolean` | No       | Specifies whether the question must be answered before submission. Default: `false`.                   |

## Schema

<CodeGroup>
  ```json Schema theme={null}
  {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "title": "RSVP Form component",
    "description": "RSVP form component",
    "type": "array",
    "additionalProperties": false,
    "maxItems": 3,
    "items": {
      "type": "object",
      "required": [
        "question",
        "answer"
      ],
      "additionalProperties": false,
      "minProperties": 1,
      "properties": {
        "question": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1000
        },
        "answer": {
          "$ref": "_base_form.json#/properties/questions/items/properties/answer"
        },
        "askFromGuests": {
          "type": "boolean",
          "default": false,
          "description": "Whether to ask the question from quests as well. ** This JSON OBJECT IS DEPRECATED **"
        },
        "isRequired": {
          "type": "boolean",
          "default": false
        }
      }
    }
  }
  ```
</CodeGroup>

## Notes

* The **RSVP Form Component** is used **within** the RSVP Component.
* Each form can contain a maximum of **3 questions** to maintain a clean, user-friendly interface.
* The `askFromGuests` property is **deprecated** — use `questions` within the main RSVP schema instead for extended configurations.
* Answer field types are inherited from the **Custom Form Component** model (e.g., `shortAnswer`, `paragraph`, `multipleChoice`, etc.).
