ClientSide RegEx validations

Stable Version 1.0.1 (OutSystems 11)
Published on 30 Aug by 
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)
Category
Libraries, Samples & How-tos
Tags
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Abdul quadir Saifee who created this component.
Dependencies
ClientSide RegEx validations has no dependencies.
Requirements
Platform:
11.0.0.200
Database:
All
Stack:
.NET
Component Consumers
No consumers yet.
Weekly Downloads