Basic Validator

The Basic Validator addresses various form input element validation needs.

To add this validator, go to the element's properties under Advanced Options > Data and choose Basic Validator in the Validator field.

When adding a Basic, you will see the following fields available for configuration:

  • Mandatory: Check this box to require the field value to be filled.
  • Type: Choose the validation type.
    • Alphabet
    • Alphanumeric
    • Numeric
    • Email
    • Custom Regular Expression
  • Custom Regular Expression: Enter a custom regular expression if selected above.
    Validation is performed case-insensitively.
    Toggle option to perform Case-sensitive Matching for Regular Expression
    For example: 
    • The first letter being a-z or A-Z
    • Minimum 1 subsequent letter.
      Sample Code: [a-zA-Z]{1}.+
  • Regular Expression Case-sensitive Matching?: This field appears when Custom Regular Expression is selected in the Type attribute above.
  • Custom Error Message Shown When Validation Fails: Message displayed when validation fails.

Feature for mobile devices

This is a new feature for Joget DX version 8.1 onwards.

This feature enhances the user experience for number fields by showing increase/decrease controls and displaying a numeric keypad on mobile devices.

To enable this:

  1. Go to the Validator attribute.
  2. Select Basic for the validator and Numeric for the type.
  3. Save the builder.

Created by Julieth Last modified by Aadrian on Dec 13, 2024