Search code examples
jqueryjquery-validation-engine

jQuery Validation engine : How to use the 'showOneMessage' property?


I'm using jQuery.validationEngine in one of my forms. Problem is when there are multiple required fields missing the form gets flooded with those floating red validation error per input field.

There is property mentioned in the documentation called showOneMessage which is suppose to only show the first validation but i'm not able to get it to work. here's a working jsFiddle Link with added showOneMessage attribute which doesn't seem to be doing anything.

anyone knows how to get the showOneMessage working? Thanks


Solution

  • I just used, tested (Nov 2012) and it works:

    <script>
        jQuery(document).ready(function(){
        jQuery("#formIDhere").validationEngine('attach', {showOneMessage: true});    
        });
    </script>
    

    Looks like this was known and addressed by the author 2 months ago. Maybe make sure you have the latest code?