FreemiumProBusinessEnterprise

Field Validation: Masks, Regex, Limits

Validation Principle

tikento uses two-level validation:

  1. Client-side (blur) — validation when leaving the field. Instant feedback for the attendee.
  2. Server-side (backend) — repeated validation when the form is submitted. Guarantees data correctness.

The backend is the single source of truth. Even if client-side validation is bypassed, the server will reject incorrect data.

Built-in Rules by Field Type

Standard rules are provided for each of the 14 field types:

Field TypeBuilt-in Validation
EmailEmail format (RFC 5322), regex check
PhonePhone format, international regex
TextMinimum/maximum length
NumberMinimum/maximum value
DateValid date, range boundaries
URLURL format
DropdownValue from allowed options
RadioValue from allowed options
CheckboxRequired check (for consents)
FileFile type and size

Configuring Validation

Required Field

The "Required field" toggle in the field settings. When enabled, the attendee cannot submit the form without filling in this field.

Regex Pattern

For text fields, you can set a regular expression to validate the input format:

  1. Open the field settings in the form builder.
  2. Find the "Validation" section.
  3. In the "Regex pattern" field, enter the regular expression.
  4. In the "Error message" field, enter the text the attendee will see if the input doesn't match.

Examples:

  • Tax ID (12 digits): ^\d{12}$
  • Passport series and number: ^\d{4}\s?\d{6}$
  • Letters only: ^[a-zA-Z\s-]+$

Minimum and Maximum

For number fields, set boundaries:

  • min — minimum allowed value
  • max — maximum allowed value

For text fields:

  • minLength — minimum text length
  • maxLength — maximum text length

Blur Validation

Validation triggers when the attendee leaves a field (loses focus). This provides instant feedback:

  • The field is highlighted in red
  • An error message appears below the field
  • The attendee can immediately correct the input

When returning to the field and correcting the error, the highlighting and message disappear.

Localized Messages

All standard error messages are translated into supported languages (ru, en, es, ar, it, de, fr). The attendee sees the message in the form's language.

For custom messages, you can provide a translation for each language:

  1. In the field settings, open the "Validation" section.
  2. Click the translation icon next to the "Error message" field.
  3. Fill in the texts for the desired languages.

If no translation is provided, the fallback chain is used: requested language, Russian, English, error key.

Validation During Step Navigation

In multi-step forms, validation is performed before moving to the next step. The attendee cannot proceed until all required fields on the current step are filled in correctly.

Frequently asked questions

When does the attendee see a validation error?
With blur validation — immediately after leaving the field (losing focus). This allows correcting the error before submitting the form, without waiting for the Submit button.
Can I set a custom error message?
Yes. For each validation rule, you can specify a custom message in each supported language. If no custom message is provided, the default one is used.
Is validation performed only on the client?
No. The backend repeats all validation on the server. Client-side validation is for attendee convenience; server-side validation is for security and correctness.