FormFieldValidations

Introduction

FormFieldValidations are related to FormFields and describe how input fields should be validated when a User enters information or submits the Form.

How a field should be validated is determined by it's FormFieldValidationType associated by thw key and the config.

Model Definition

Alias

formFieldValidation

Relations

Relation
Key
Type
Relation Field(s)

formField

Belongs to

form_field_id

formFieldValidationType

Belongs to

form_field_validation_type_id

Computed Properties

  • validation_string - The resulting validation string from the configuration

[Adm.] Create

Create a new FormFieldValidation.

Definition

POST /api/administration/forms/fields/validations

Request Keys

Key
Type
Default
Description

form_field_id *

integer

-

The related FormField

form_field_validation_type_id *

integer

-

config

json

Default FormFieldValidationTyp config

The scheme how the data has to be stored to pass the validation

Keys with * are required.

Example Request

Example Response

[Adm.] Update

Update an existing FormFieldValidation by id.

Definition

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

Request Keys

Key
Type
Description

form_field_id

integer

The related FormField

form_field_validation_type_id

integer

config

json

The scheme how the data has to be stored to pass the validation

Example Request

Example Response

[Adm.] Delete

Delete an existing FormFieldValidation by id.

Definition

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

Example Request

Example Response

Last updated