restrict-characters
Reactive icon

Restrict Characters

Stable version 2.0.1 (Compatible with OutSystems 11)
Uploaded
 on 30 June 2024
 by 
5.0
 (2 ratings)
restrict-characters

Restrict Characters

Documentation
2.0.1

Steps to use the client action:

1. Create a handler for the On Change Event of the input field (input has to be of text type).

2. Call the client action and pass the input widget Id, the desired regular expression pattern for allowed characters and boolean values to convert to upper or lower case as parameters.

3. Assign the output of the action to the same variable bound to the input field.

Note: If you are going to use ConvertToUpper or ConvertToLower, please use both upper and lower case charater set, for example 'a-zA-Z', otherwise the converted values might be removed based on allowed pattern.

Note: If both ConvertToUpper and ConvertToLower are set to True then ConvertToUpper will be used.

Note: It is recommended to clearly define the desired regular expression pattern for allowed characters to ensure the correct behavior of the client action. Use a website such as https://regex101.com/ to generate the pattern.

Note: Change the data type of the output in 3rd step using Outsystems built-in actions as required to match the data type of the variable bound to the input field.

Check demo here.


1.0.0

Steps to use the client action:

1. Create a handler for the On Change Event of the input field.

2. Call the client action and pass the variable bound to the input field and the desired regular expression pattern for allowed characters as parameters.

3. Assign the output of the action to the same variable bound to the input field.

Note: It is recommended to clearly define the desired regular expression pattern for allowed characters to ensure the correct behavior of the client action. Use a website such as https://regex101.com/ to generate the pattern.

Note: Change the data type of the output in 3rd step using Outsystems built-in actions as required to match the data type of the variable bound to the input field.

Check demo here.