Form Validation in UI Designer

1
0
-1

Hi,
Is there a way to validate the user input in a UI Designer's form?

I want to show some text error below a required field widget. I can show the constraints messages in the page but I don't think this is the correct way to report the errors.

The required property on the widget says something about $form.$invalid as boolean but I don't know hot to get this value.

Any help?

1 answer

1
0
-1
This one is the BEST answer!

I would use custom widgets with AngularJS validation, have a look at the following examples of validation techniques.

http://www.sitepoint.com/easy-form-validation-angularjs-ngmessages/
http://www.w3schools.com/angular/angular_validation.asp
http://code.realcrowd.com/on-the-bleeding-edge-advanced-angularjs-form-validation/
https://scotch.io/tutorials/angularjs-form-validation-with-ngmessages
http://codepen.io/sevilayha/pen/xFcdI

Hope this helps,
regards
Seán

PS: If this reply answers your question, please mark a resolved.

Comments

Submitted by harzamendia on Thu, 01/07/2016 - 18:08

Hi Sean,
First at all thank you for your reply!

Did you have some example of validations with custom widgets? I know the techniques on Angular but I don't know how to work it with the custom widgets.

Submitted by Sean McP on Thu, 01/07/2016 - 22:02

nope, sorry...

Notifications