Module: alfresco/forms/controls/Password

alfresco/forms/controls/Password

This is a specialization of the TextBox that sets the widget type to be of type "password". It should be used for capturing user password entry where the password entered should not be visible.
Author:
  • Dave Draper
License:
Source:

Members

confirmationErrorMessage :string

The error message to display when the entered value does not match that of the field to compare against
Type:
  • string
Since:
  • 1.0.87
Default Value:
  • "password.not.match.error"
Source:

confirmationTargetId :string

This can be configured to be the fieldId of another form control (preferably another password field!) that the value of this field should match. The typical use case is when prompting a user to confirm the change of password.
Type:
  • string
Since:
  • 1.0.87
Default Value:
  • null
Source:

i18nRequirements :Array

An array of the i18n files to use with this widget.
Type:
  • Array
Since:
  • 1.0.87
Source:

Methods

confirmMatchingPassword(validationConfig)

This is a validation callback function that is automatically used when a confirmationTargetId is specified.
Parameters:
Name Type Description
validationConfig object The configuration for the requested validation
Since:
  • 1.0.87
Source:

getWidgetConfig()

Extends the inherited function to make the text box of type "password".
Source:

postMixInProperties()

Extends the inherited function to setup validation for any configured confirmationTargetId
Since:
  • 1.0.87
Source: