Contents tagged with validation

  • Creating Your Own Custom Angular Maxlength Directive For Readonly Restrictions

    Here's an example - you've got a field (eg, for customer comments) where you'd like to limit the maximum number of characters entered on the frontend. Pretty simple, you just throw on ng-maxlength, right? <textarea class="form-control msd-elastic" ng-model="comments" ng-maxlength="100" name="comments"></textarea> But now, you also want … more

  • Pro Tip: Client Side Validation with Nintex Forms

    To use the custom validation in Nintex, in the control settings, provide a method name for your custom validation for that specific control: And then you need to provide an implementation of the custom validation method you've named - this isn't documented anywhere on their site yet so I got the answer through a support ticket, but essentially you need to provide a method with the same name … more

  • Kentico: Custom BizForm Validation

    Here's a quick tip on how to add custom validation to your BizForms in Kentico - for example, ensuring that a user has checked a "terms and conditions" checkbox, or that email addresses match. The BizForm control in Kentico provides quite a few events for which you can hook into, such as OnOnSaveFailed, OnOnValidationFailed, etc - but the one we're interested in is OnOnAfterValidate - this … more

  • InfoPath Validation And The Errors Property

    When developing InfoPath forms, sometimes doing your validation using rules in the designer isn't quite powerful enough. Luckily for us, InfoPath allows you to hook into the Validation event for controls within your form; but here's something to watch out for. When developing a form that attempts to access the Errors property of the current form from within a Validation event, although it will … more

  • Infopath Validation Gotcha

    In an InfoPath form I've been working on, I've used the Validating event to attach some code to do some more complex validation (ie, something that I can't achieve through rules). It's actually not too complicated, and follows the following general syntax: public void MyField_Validating(object sender, XmlValidatingEventArgs e) { //clear any existing errors try { this.Errors. … more

  • 1