Number Form Validator

Introduction

The Number Form Validator plugin is designed to validate numerical values against a fixed value or another form field value using operators like =, >=, <=, >, and <.

Plugin information

  • Plugin Name: Number Validator
  • Joget DX Compatibility: Joget DX 8

Get started

Where to get the plugin

Download the plugin from GitHub.

Configure number validator Properties

Form field

When In the Compare Against field, you select the Form field, you will view the following properties to configure:

  • Compare Against: 
    • Form Field: To compare value of the selected Form Field with another Form Field.
    • Fixed Value: To compare value of the selected Form Field with a Fixed Value.
  • Form: The Form of the desired Field ID to be compared against.
  • Field ID: The desired Field ID to be compared against.
  • Operator: Select one of the following:
    • Equal To: Checks if one form field is equal to another form field.
    • Not Equal To: Checks if one form field is not equal to another form field.
    • Greater Than: Checks if one form field is greater than another form field.
    • Greater Than or Equal: Checks if one form field is greater than or equal to another form field
    • Less Than: Checks if one form field is less than another form field.
    • Less Than or Equal: Checks if one form field is less than or equal to another form field.
  • Custom Error Message When Validation Fails: Allows a custom error message to be displayed when the number validation fails. If this property field has no value, it will take the default value.
    Default value: "Number Validation Failed"
  • Custom Error Message When Compared Field Value Is Empty: Allows a custom error message to be displayed when the compared Form Field is empty. If this property field has no value, it will take the default value.

    Default value: "Value of compared field value is empty".
    For instance (see yellow highlighted area):

Fixed value

When In the Compare Against field, you select the Fixed Value, you will view the following properties to configure:

  • Compare Against: 
    • Form Field: To compare value of the selected Form Field with another Form Field.
    • Fixed Value: To compare value of the selected Form Field with a Fixed Value.
  • Custom Value: Custom value to be compared against (for example: 1, 2 or 3).
  • Operator: Select one of the following:
    • Equal To: Checks if one form field is equal to another form field.
    • Not Equal To: Checks if one form field is not equal to another form field.
    • Greater Than: Checks if one form field is greater than another form field.
    • Greater Than or Equal: Checks if one form field is greater than or equal to another form field
    • Less Than: Checks if one form field is less than another form field.
    • Less Than or Equal: Checks if one form field is less than or equal to another form field.
  • Custom Error Message When Validation Fail: Allows a custom error message to be displayed when the number validation fails. If this property field has no value, it will take the default value.

    Default value: "Number Validation Failed"

Download plugin

Created by Julieth Last modified by Aadrian on Nov 19, 2024