regex-inputs-restrictions
Reactive icon

Regex Inputs Restrictions

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 29 December 2024
 by 
0.0
 (0 ratings)
regex-inputs-restrictions

Regex Inputs Restrictions

Documentation
1.0.0

Kindly adhere the below following steps to consume this component.
A) Take "RestrictInputs" client action via dependency from InputRestriction module from Regex Inputs Restrictions.
B) Drag an action "RestrictInputs" to OnInput event handler of input widget. It can be added in Onkeyup, etc.,
C) Configure the inputs of "RestrictInputs" action as per requirement.
D) The appropriate output will be given from an action.

Please find the below descriptions for inputs of RestrictInputs action.
A) Restriction Type needs to be passed. E.g. (Note: A-Alphabets, LA-LowerAlpha.., UA-UpperAlpha.., SC-SpecialCharactes, N-Numbers)
A- allow only A
LA- allow only LA
UA- allow only UA
swA- any value but only starts with A
swLA- any value but only starts with LA
swUA- any value but only starts with UA
N- allow only N
swN- any value but only starts with N
SC- allow only SC
swSC- any value but only starts with SC
A&SC- allow only A and SC
LA&SC- allow only LA and SC
UA&SC- allow only UA and SC
swAorSC- any value but only starts with A or SC
swLAorSC- any value but only starts with LA or SC
swUAorSC- any value but only starts with UA or SC
A&N- allow only A and N
LA&N - allow only LA and N
UA&N - allow only UA and N
swAorN- any value but only starts with A or N
swLAorN- any value but only starts with LA or N
swUAorN- any value but only starts with UA or N
N&SC- allow only N and SC
swNorSC- any value but only starts with N or SC
GV- allow only any given value(s) mentioned in SpecificValues(s)ToAllow input. E.g. ! or 123!@# or abc$%*.

B) Specific value(s) can be passed to allow along with the RestrictionType chosen. It allows users to enter the given specific values along with the given RestrictionType. The specific value can be any single or list of values. E.g. ! or 123!@# or abc$%*.

C) Specific value(s) can be passed to restrict. It prevents users from entering this given specific value(s). The specific value can be any single or list of values. E.g. ! or 123!@# or abc$%*.

D) Specific value(s) to be start with can be passed. It allows users to enter values with first character as only given specific value(s). E.g. ! or 123!@# or abc$%*.

E) HasSpaceNOTAllowed - The Boolean value needs to be passed. If True, Space will not be allowed. If False, Space will be allowed.

F) HasSpaceNOTAllowedOnlyAtFirst - The Boolean value needs to be passed. If True, Space will not be allowed at very first character. If False, Space will be allowed at very first character.

G) HasRestrictCopy - The Boolean value needs to be passed. If True, value cannot be copied. If false, value can be copied.

H) HasRestrictPaste - The Boolean value needs to be passed. If True, value cannot be pasted. If false, value can be pasted.

I) HasValidateEmail - The Boolean value needs to be passed. If True, Email format will be validated. If False, Email format will not be validated. This can be set as True, if input value holds any email format.