Password Field

The Password Field in Joget is a standard HTML input element designed to capture user input securely by disguising each character with an asterisk (*). This feature provides on-screen privacy for users when entering their passwords.

How does it work?

To see how the Password Field works, follow these steps to create a new app:

  1. Start the Joget Server and open the App Center.
  2. Log in as admin and click the Design New App button.
  3. Select Create A Blank App and fill up the App Details as follows, then click Save:
    • App ID: tutorial
    • App Name: Tutorial
  4. You will be directed to the App Composer. Click the Create New Form button and fill up the Form Details as follows:
    • Form ID: passwordField
    • Form Name: Password Field
    • Table Name: tutorial


  5. Click Save, and you will be directed to the Form Builder.
  6. Drag and drop a Password Field element onto the canvas.
  7. Click Preview, key in any value in the Password field, and it will be automatically masked. 

Configure Password Field

Configuring the Password Field involves setting its label, ID, and advanced options such as default values, maximum length, validators, and UI options.
Fields to configure:

  • Label: The element label to be displayed to the end-user.
  • ID: The element ID. A corresponding database table column c_password will be created by declaring it as password. See Form Element for more information about defining the ID and a list of reserved IDs.

Advanced options

Advanced options provide additional data handling, validation, and UI customization settings.

Data

The Data section for the Password Field in Joget allows you to define default values, maximum lengths, and validators to ensure secure and validated user input. This includes setting default values using hash variables, specifying maximum input lengths, and attaching validation plugins to ensure data integrity.

Fields to configure:

  • Default Value: 

    Default Value when there's no existing value found/selected.
    A Hash Variable is accepted here. For example, you may key the following:

    #currentUser.firstName# #currentUser.lastName#
    Markup

    To pre-populate the field with currently logged in user's name.

  • Max Length: Maximum character length allowed.
  • Validator: Attach a Validator plugin to validate the input value.
    When will validation take place?
    Validation will occur whenever a form is submitted except when it is submitted as Save as Draft.
    Available options include:
    • Basic
    • BeanShell
    • Date and Time Duplicate Validator
    • Directory
    • Duplicate Value
    • Equal Value
    • Multi Form Validator
    • Password
    • Plugin Template - Validator

UI

The UI section allows you to customize the appearance and behavior of the Password Field in the Joget form builder. This includes setting the element's size, making it readonly, and determining how the field should display when in readonly mode.
Fields to configure:

  • Size: Width of the element.
  • Readonly: Determines if the element is editable.
  • Display field as Label when readonly?: Displays the value of the element as plain text when the element is set to Readonly.

 

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