Skip to main content
Version: 2.24.0

Password Input

The Password Input component allows users to enter passwords securely. In this component, passwords are concealed, displaying each character as an asterisk to ensure privacy. In this document, we'll go through all the configuration options for the Password Input component.

How To Use Password Input Component

Properties

PropertyDescriptionExpected Value
PlaceholderProvides a hint for the expected value. It disappears once the user interacts with the component.Enter some instructional text as the value (example: "Type name here")
RegexUse this field to enter a Regular Expression that will validate the password constraints.Regular Expression
Min lengthEnter the number for a minimum length of password allowed.Numeric value
Max lengthEnter the number for the maximum length of password allowed.Numeric value
Custom validationIf the condition is true, the validation passes, otherwise return a string that should be displayed as the error message.A validation condition (example: {{components.passwordInput1.value === 'something' ? true : 'value should be something'}} )

General

Tooltip

A Tooltip is commonly used to provide additional information about an element. This information becomes visible when the user hovers the mouse pointer over the respective component.

In the input field under Tooltip, you can enter some text and the component will show the specified text as a tooltip when it is hovered over.

ToolJet - Component Reference - Password input

Layout

Show on desktop

Use this toggle to show or hide the component in the desktop view. You can dynamically configure the value by clicking on Fx and entering a logical expression that results in either true or false. Alternatively, you can directly set the values to {{true}} or {{false}}.

Show on mobile

Use this toggle to show or hide the component in the mobile view. You can dynamically configure the value by clicking on Fx and entering a logical expression that results in either true or false. Alternatively, you can directly set the values to {{true}} or {{false}}.


Styles

StyleDescriptionExpected Value
VisibilityControls the visibility of the component. If set to {{false}}, the component will not be visible after the app is deployed.Use the toggle button or dynamically configure the value by clicking on Fx and entering a logical expression that results in either {{true}} or {{false}}.
DisableMakes the component non-functional when set to true.Use the toggle button or dynamically configure the value by clicking on Fx and entering a logical expression that results in either {{true}} or {{false}}.
Border radiusAdjusts the roundness of the component's corners.Numeric value
Background colorChanges the background color of the component.Hex color code/choose a color using the color picker

General

Box Shadow

The Box Shadow property is used to add shadow effects around a component's frame. You can specify the horizontal and vertical offsets(through X and Y sliders), blur and spread radius, and color of the shadow.

Exposed Variables

VariablesDescription
valueThis variable holds the value entered by the user onto the password input component. You can access the value dynamically using JS: {{components.passwordinput1.value}}

Component Specific Actions (CSA)

There are currently no Component-Specific Actions (CSA) implemented to regulate or control the component.