Validation OnChange for Postal-Code
Application Type
Traditional Web

I am new at Outsystems and I am trying to have an OnChange action that allows me to validate if the inserted postal code is valid or not. 

Is there a way to make a mask show if is valid after typing the input value?

Hi, friend.

How are you validating the inserted postal code?

Depending on it, you can change the .valid attribute of input to false.


I was hoping that I could use a regex pattern on change to validate.

What does this mask do and how does it affect to the input?

The regex I am using is this and it works on change, the problem I have is related to the mask.

When I type the input the mask does not add the character - on the correct order.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.