> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Form Schema Templates

# Type: Form Template Object

# Link: https://dev.wix.com/docs/api-reference/crm/forms/form-schema-templates/form-template-object.md

## Description: A form template is a reusable definition of a form's fields, steps, and settings. It's used as the
source when creating a form. App owners define templates for their namespace in the app dashboard,
and this API retrieves them.

## Schema:

```json
 Type: Form Template Object | type: FormTemplate
 Description: A form template is a reusable definition of a form's fields, steps, and settings. It's used as the
source when creating a form. App owners define templates for their namespace in the app dashboard,
and this API retrieves them.
       - name: id  | type: string | description: Form template ID.
           - name: value  | type: string | description: 
       - name: namespace  | type: string | description: Namespace that groups this template with the templates and forms belonging to the same app or use case, such as a bookings or pricing plans checkout. The value is defined by the app that owns the template in the app dashboard, and is the value you pass when retrieving form templates.
       - name: formFields  | type: Array<Field> | description: Fields of the form, such as text inputs, and display elements, such as the submit button. Each step's layout places a field by referencing the field's `id`.
           - name: id  | type: string | description: Field ID.  The ID is stored in lowercase. Because the form's layout references each field by this ID, pass a lowercase GUID so that `id` and the layout's `fieldId` still match after the form schema is stored. IDs must be unique in the form.
           - name: hidden  | type: boolean | description: Whether the field is hidden from submitters.  Default: `false`
           - name: identifier  | type: string | description: Identification for the field, describing its purpose. For example, `TEXT_INPUT` or `CONTACTS_EMAIL`.  Set this to the known value for the kind of field you're creating. Wix accepts an unrecognized value, such as a custom string or a GUID: the request succeeds, and Wix stores the field, returns it in `formFields`, and accepts its submissions. But Wix apps use `identifier` to recognize a field, so the Wix Forms editor doesn't render it, and the Wix user can't see or edit that field. A form whose fields all carry unrecognized identifiers opens empty in the editor. Always map a field onto a known identifier, and set its display name with the component's label.  Several fields share a general-purpose `componentType`, so `identifier` is often the only value that distinguishes them. For example, both a short answer field and a long answer field use the `TEXT_INPUT` component, and are told apart by their `TEXT_INPUT` and `TEXT_AREA` identifiers.  For the full list of known values, see [About Form Fields](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/about-form-fields.md).
           - name: fieldType  | type: string | description: Field type.  `INPUT` fields collect data from submitters and are configured in `inputOptions`. `DISPLAY` fields show information without collecting data and are configured in `displayOptions`.
               enum: UNKNOWN_FIELD_TYPE, INPUT, DISPLAY
           - ONE-OF:
               - name: inputOptions  | type: InputField | description: Configuration for input fields that collect user data.
                   - name: target  | type: string | description: Human readable identifier used to reference a field, used as the key under which the field's value is stored in a submission. For example, `"address"`.  Required for input fields. Must be unique within the form (comparison is case-sensitive).  Naming rules: - Must start with an ASCII letter (`a`-`z` or `A`-`Z`). - May contain ASCII letters, digits, and underscores (`_`). No spaces, hyphens, or non-ASCII characters. - Consecutive underscores (`__`) are not allowed. - Casing is not enforced, so `camelCase`, `snake_case`, and `PascalCase` are all valid.  Can be set once.
                   - name: pii  | type: boolean | description: Whether this field contains Personally Identifiable Information (PII).  PII fields are automatically encrypted when stored.  Default: `false`
                   - name: required  | type: boolean | description: Whether the field is required for form submission.  Set this on `inputOptions`, alongside `target` and `inputType`. A `required` placed inside a validation object, such as `stringOptions.validation`, isn't part of the schema and has no effect.  Default: `false`
                   - name: inputType  | type: string | description: Type of the input field that determines what kind of data it collects.  `inputType` selects which options object applies. For example, `STRING` is configured in `stringOptions`, and `PAYMENT` in `paymentOptions`. That options object then sets a `componentType`, which selects the UI component and its own nested settings object.  For which combinations produce which field, see [About Form Fields](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/about-form-fields.md).
                   - name: contactMapping  | type: FormFieldContactInfo | description: Mapping configuration for automatically saving field values to contact properties.  When specified, form submissions automatically create or update contacts with the field data.
                   - name: readOnly  | type: boolean | description: Whether the field is read-only.  Default: `false`
                   - ONE-OF:
                       - name: stringOptions  | type: String | description: String input field settings.
                       - name: numberOptions  | type: Number | description: Number input field settings.
                       - name: booleanOptions  | type: Boolean | description: Boolean input field settings.
                       - name: arrayOptions  | type: Array | description: Array input field settings.
                       - name: objectOptions  | type: Object | description: Object input field settings.
                       - name: wixFileOptions  | type: WixFile | description: File input field settings. Files are uploaded to the [Media Manager](https://support.wix.com/en/article/wix-media-about-the-media-manager).  > **Note:** File upload and signature fields are premium features. The site must have a Core premium plan or higher. Creating a form schema with one of these fields on a site without a qualifying plan fails.
                       - name: paymentOptions  | type: Payment | description: Payment input field settings.  > **Note:** Payment fields are premium features that also depend on another app. The site must have a Core premium plan or higher, and the Wix eCommerce app must be installed. Creating a form schema with a payment field on a site that doesn't meet both requirements fails.
                       - name: schedulingOptions  | type: Scheduling | description: Scheduling input field settings.  > **Note:** Scheduling fields require the Wix Meetings app to be installed on the site. Creating a form schema with a scheduling field on a site without the app fails.
                       - name: addressOptions  | type: Address | description: Address input field settings.
               - name: displayOptions  | type: DisplayField | description: Configuration for display fields that show information without collecting input.
                   - name: displayFieldType  | type: string | description: Type of display field that determines its appearance and behavior.
                   - ONE-OF:
                       - name: richContentOptions  | type: RichContentOptions | description: Configuration for rich content display fields.
                       - name: pageNavigationOptions  | type: PageNavigationOptions | description: Configuration for page navigation display fields such as navigation or submit buttons.
       - name: steps  | type: Array<Step> | description: Steps of the form. Each step represents a page of the form and determines its layout.
           - name: id  | type: string | description: Step ID.
           - name: name  | type: string | description: Name of the step.
           - name: hidden  | type: boolean | description: Whether the step is hidden.
           - name: layout  | type: FormLayout | description: Layout configuration that defines how form fields are arranged within this step.
               - name: large  | type: BreakPoint | description: Layout configuration for large screen breakpoints (desktop).
               - name: medium  | type: BreakPoint | description: Layout configuration for medium screen breakpoints (tablet).
               - name: small  | type: BreakPoint | description: Layout configuration for small screen breakpoints (mobile).
       - name: name  | type: string | description: Display name of the template.
       - name: submitSettings  | type: SubmitSettings | description: Settings that determine what happens after the form is submitted, such as displaying a thank you message, redirecting to a URL, or opening a popup.
           - name: submitSuccessAction  | type: string | description: Action that's triggered after a form is successfully submitted.
               enum: NO_ACTION, THANK_YOU_MESSAGE, REDIRECT, POPUP
           - ONE-OF:
               - name: thankYouMessageOptions  | type: ThankYouMessageOptions | description: Configuration for displaying a thank you message after submission.
                   - name: durationInSeconds  | type: number | description: Duration in seconds before the thank you message automatically disappears. If set to 0, the message remains visible until manually dismissed.
                   - name: richContent  | type: RichContent | description: Rich content message displayed to users after successful form submission.
               - name: redirectOptions  | type: RedirectOptions | description: Configuration for redirecting submitters to a URL after submission.
                   - name: redirectUrl  | type: string | description: URL to which the user should be redirected after successfully submitting the form.
                   - name: target  | type: string | description: How the redirect URL should be opened in the browser.
               - name: popupOptions  | type: PopupOptions | description: Configuration for displaying a popup after submission.
                   - name: popupId  | type: string | description: ID of the site popup to open after successful form submission.
       - name: createdDate  | type: string | description: Date and time the form template was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the form template was last updated.
       - name: fieldGroups  | type: Array<FieldGroup> | description: Groups of related fields, gathered under a shared label on the form's layout.
           - name: id  | type: string | description: Id of group, on layout
           - name: label  | type: string | description: Label of group
       - name: requiredIndicatorProperties  | type: RequiredIndicatorProperties | description: How required fields are marked on the form: the indicator that's displayed, for example an asterisk, and its placement relative to the field title.
           - name: requiredIndicator  | type: string | description: Type of visual indicator used to mark required fields.
               enum: ASTERISK, TEXT, NONE
           - name: requiredIndicatorPlacement  | type: string | description: Position where the required indicator appears relative to the field title.
               enum: AFTER_FIELD_TITLE, BEFORE_FIELD_TITLE
       - name: autoFillContact  | type: string | description: Source used to autofill contact fields in forms created from this template.  Default: `FORM_INPUT`
           enum: MEMBER_DATA, FORM_INPUT
       - name: quizSettings  | type: QuizSettings | description: Quiz configuration applied to forms created from this template.
           - name: message  | type: RichContent | description: Rich-content message shown on the quiz result (confirmation) page, alongside any score or pass/fail status configured in `results_display`.
               - name: nodes  | type: Array<Node> | description: Node objects representing a rich content document.
               - name: metadata  | type: Metadata | description: Object metadata.
               - name: documentStyle  | type: DocumentStyle | description: Global styling for header, paragraph, block quote, and code block nodes in the object.
           - name: resultsDisplay  | type: string | description: How to display quiz results in the confirmation page. Default: `DO_NOT_DISPLAY`
               enum: DO_NOT_DISPLAY, SCORE, PASSING_STATUS, SCORE_AND_PASSING_STATUS
           - ONE-OF:
               - name: passingScorePoints  | type: number | description: Score required to pass the quiz (in points).
               - name: passingScorePercentage  | type: number | description: Score required to pass the quiz as a percentage (0-100).
           - ONE-OF:
               - name: passingStatusOptions  | type: PassFailMessages | description: Configuration for displaying only the pass/fail message.
                   - name: passMessage  | type: RichContent | description: Message displayed when the user passes the quiz.
                   - name: failMessage  | type: RichContent | description: Message displayed when the user fails the quiz.
               - name: scoreAndPassingStatusOptions  | type: PassFailMessages | description: Configuration for displaying both the score and pass/fail message.

```