For the complete documentation index, see llms.txt. This page is also available as Markdown.

FormFieldValidations

Introduction

FormFieldValidations apply a FormFieldValidationType to a FormField.

Model Definition

Alias

formFieldValidation

Relations

Key
Relation
Type
Relation Field(s)

formField

Belongs to

form_field_id

formFieldValidationType

Belongs to

form_field_validation_type_id

Admin: Create

Create a new FormFieldValidation.

Definition

POST /api/administration/forms/fields/validations

Request Keys

Key
Type
Default
Description

form_field_id*

integer

-

Target FormField ID.

form_field_validation_type_id*

string

-

config

object

Type default

Type-specific configuration documented with the selected Form Field Validation Type.

Keys with * are required.

Behavior

  • When config is omitted, the selected validation type's default_config is inserted before validation.

  • The in, not-in, and regex defaults are editor placeholders and must be populated in the create request.

Example Request

Example Response

Admin: Update

Update an existing FormFieldValidation.

Definition

PUT /api/administration/forms/fields/validations/{formFieldValidation}

Route Parameters

Parameter
Type
Description

formFieldValidation

integer

Validation ID.

Request Keys

Key
Type
Default
Description

form_field_id

integer

Current value

Target field ID.

form_field_validation_type_id

string

Current value

config

object

Current value

Type-specific configuration documented with the selected Form Field Validation Type.

Behavior

  • When the validation type is unchanged and config is omitted, the current config remains unchanged.

  • When form_field_validation_type_id changes and config is omitted, validation uses the new type's default_config. Submit config in the same request for in, not-in, or regex.

Example Request

Example Response

Admin: Delete

Delete an existing FormFieldValidation.

Definition

DELETE /api/administration/forms/fields/validations/{formFieldValidation}

Route Parameters

Parameter
Type
Description

formFieldValidation

integer

Validation ID.

Example Request

Example Response

Last updated