clientside-regex-validations

Client Side custom  RegEx (regular expression) validations

Stable version 1.0.1 (Compatible with OutSystems 11)
Published on 30 August 2019 by 
3.0
 (2 ratings)
clientside-regex-validations

Client Side custom  RegEx (regular expression) validations

Details
Can perform validations based on regular expression provided for widget. Consumer module need to pass RegEx and Validation message. Also can perform validation on onchange or on Submit event.
Read more

Outsystems provide built in validation on client and server side for multiple types like number, email,  date and others.

Some times applications need to validate user input at client side for some pattern. like phone number, or other pattern for some input.

This forge provide simple way to add custom client side validation with regular expressions.

Consumer need to pass regular expression and validation message along with Widget id to validate user input.

User input can be validated on onChange or on submit with the help of CallOnChange property.

Attached images are just sample validation for number only input. (Outsystems provide this inbuilt :) ).

Will provide regex flags support in next version.

Also upload demo/sample app and update this section.

Thanks to Matheus. I got inspiration, some code and some UI from his Forge.

Can download Sample application for testing from here.


What’s new (1.0.1)

You can pass flags for regEx. Please refer https://javascript.info/regexp-introduction for flags can be used in regex.

Added attribute for flags to pass to validate regex.

Reviews (0)
More from Abdul quadir Saifee