Validating a textbox
Sample problem: set parameter by entering value into a Text Box, check if value is a number in given range, allow clicking a Button if validation was successful. In this example a derived class Double Range Rule will check if user entered a number (double) within a given range (between Max and Min value).
Controls that helps creating custom validation rules for user input.
Use an "else" statement beneath this condition for your invalid email actions.
On the result of validation can depend many things.
The capx I shared above demonstrates this as described. The text above the text box will change depending upon whether the email is valid or not.
Given a form with two textboxes (as a simple example of the issue) When the first textbox has a class of 'required' And the second textbox's value has been set programmatically Then validation on the first textbox should happen BUT IT DOES NOT! Follow the instructions at the bottom to manually reproduce the issue.
Create a static public method and call it Set Validation. Data assembly which gets or sets a value that indicates whether to raise the error attached event on the bound object. Here we have a Custom Validation class that has one property ("Show Error Message") and one public methods ("Validation Error").
This method receives an instance of a Frame Work Element and a string value, and returns nothing: Custom Validation is the class we defined earlier. "Validation Error" is our source binding object and what we want to be able to do in the future is to bind our framework Element, which is a Text Box, to Validation Error.