41 thoughts on “Validation Engine 1.7.1 compatibility release and why

  1. Hey Cedric —

    I just started playing with your validation engine and it rules!

    One question: is there anyway when doing ajax validation to be able to pass a message back from the server that would then show up in the error message to the user?

    Doesn’t look like it is supported natively…I can write my own outside of your validation but it would be nice to be able to pass back a dynamic message to the user as to why or what specifically failed.

    Just a thought…let me know if you work this functionality in because I’d love to incorporate.

    Many thanks for a truly awesome plugin,
    Matt

  2. Made this edit in your plugin:

    promptText += $.validationEngine.settings.allrules[customAjaxRule].alertText+””;

    if(data.jsonValidateReturn[3]){
    promptText += data.jsonValidateReturn[3] + “”;
    }

    And am passing one more argument back in JSON…

    Easy stuff!
    Thanks,
    Matt

  3. Hey Cedric,

    thanks for your validation engine.
    But how can i validate urls? I only need the regex.

    Tanks,
    Marco

  4. Is the code at github the 1.7.1 version because at the top of the code is says 1.7, I want to make sure it is the fixed code.

    I am having trouble implementing this in my ASP.NET page. Any help would be appreciated.

    Thanks again.

    Ron Sell

  5. Is the code at github the 1.7.1 version because at the top of the code is says 1.7, I want to make sure it is the fixed code.

    I am having trouble implementing this in my ASP.NET page. Any help would be appreciated.

    Thanks again.

    Ron Sell

  6. Hi!!

    Great job with form validation. ๐Ÿ˜‰ ๐Ÿ˜‰ ๐Ÿ˜‰

    I have a problem:
    how it would function if it had 3 inputbox and want to have at least one to be filled?

    I have the next code, but not works.
    function validateContacts(){
    if($(“#phone”).val() == “” && $(“#mobilePhone”).val() == “” && $(“#email”).val() == “”){
    return false;
    }else{
    return true;
    }
    }

    Contactos

  7. Hello, I have a problem with the display of popup error on a textarea which has received a wysiwyg, it seems very far left of the textarea.
    You can change the view of only one popup textarea?

    Sorry for my english…

  8. hello
    Great job with form validation.

    I have a problem:
    I am using asp.net with master page.How i can add validation groups?I have two buttons inside a form.Is it possible to remove the validation rules according to some conditions??i tried some code like this
    $(document).ready(function() {

    $(“#ctl00_ContentPlaceHolder1_Button1”).click(function() {
    $(“.group2”).each(function(){

    $.validationEngine.rules(“remove”);
    });
    $(“#aspnetForm”).validationEngine()
    });
    I added a group1 and group2 as two validation groups

    Please help
    Thanks in Advance

    1. Me too! I have one form and my log out button is inside… so when I click logout it validates the fields but it shouldn’t matter!

      1. You could use the method $(“#formID1”).validationEngine(‘detach’); .. Using it you’ll be able to remove any validation rule. But do not forget to ‘attach’ again using your own rules otherwise you’ll lose your verifications.

        I did this using 2 different buttons. So when I click in the clean button… I used the method detach… and when I click the send button I attached the validations again. It’s been working so far so good..hehe.. Take care ๐Ÿ™‚ Fael

  9. Thank you SO MUCH for this plugin. It is the best looking validation I have ever seen and it works perfectly.

    I too have 2 radio choices (No and Yes). I need to validate that they have made a selection and that selection is NO.

    In the same form I have more Yes/No radios and they need to be selected to YES.

    Any help would be greatly appreciated!

    Take care,

    ~ Dean

  10. The email custom validation accepts name@domain;com (with semi colon). You can try this in your DEMO.
    I tried to check what was wrong with the regular expression. Apparently the regular expression is correct but the problem comes from the double quotes around it in the validationEngineLanguage rules in jquery.validationEngine-LANG.js

    Try to change :
    “regex”:”/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+\.[a-zA-Z]{2,4}$/”,

    to

    “regex”:/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+\.[a-zA-Z]{2,4}$/,

    andd it will work. There is somewhere a problem with the eval() of that regexp…
    The problem seems to be the same on Firefox and IE.

  11. Hello, first thanks for your gr8 plugin
    I have a problem, I’m using Ajax submit, and my form is really long, so after submission, the green OK message goes to the top of the page and the user must scroll up the page to see the message.
    is there anyway so after submission, it automatically goes to the top of the page ?

    Regards
    Behzad

  12. Cedric,

    I am trying to validate an email address by using the following:

    INPUT CLASS
    validate[required,custom[email],funcCall[uniqueEmail]]

    TEST FUNCTION ONLY, BUT THIS IS THE SKELETON
    function uniqueEmail() {
    var isUniqueEmail = true;
    if(isUniqueEmail == true){
    return true;
    } else {
    return false;
    }
    }

    THIS IN THE LANGUAGE FILE
    “uniqueEmail”:{
    “nname”:”uniqueEmail”,
    “alertText”:”* Email address is already registered”
    }

    Unfortunately when I enter something in it doesn’t say “Email address is already registered” but instead returns the default email address error message. Is there a way I can test that it *is* an email address and *is* unique using this function?

      1. if you found the author answering your question, please kindly ask him to answer my question too.
        anyone knows how I can solve my problem ? going to the top of the page after ajaxsubmit ? ( 2 comments above )

        Regards

  13. @Behzad You would need to add a scrollTop to the green box position, see jquery scrolltop api

    @Mitch Malone This is not possible, if you want to check in ajax if a user exist in a database or server side, you need to use the inline ajax validation

  14. Hi Cedric,

    Nice to meet you,

    I have a quick question from your inline form validation, because the particular post’s comment closed so I ask you here..
    http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/#comments

    I’m integrating the validation plugin with a multi-part form,
    is it possible to call the submit validate function to check for a few inputs before it goes to the next page?
    for example below is my visual:

    page-1:
    input: name
    input: email
    [NEXT BUTTON]
    (validate for page-1 inputs: name,email. go to page-2 iff there’re no errors)
    maybe something like this? onclick=”$.validationEngine.submitValidation(only check for name and email..)”

    page-2:
    input: country
    input: contact
    [SUBMIT]
    (check for the page-2, validate the rest of form as usual)

    Hope you can give me a quick guides, thanks a lot and thank you so much for the useful plugins~!!
    Thanks!
    =)

    Regards.
    jihchuan

  15. Hi Cedric,

    I’m a jQuery / PHP novice and I can’t figure out where to plug in the email address(es) I want the form to submit to.

    Any help would be greatly appreciated.

    thanks,
    Mike

  16. i’m developing a form to my company and using your plugin… which i really apreciate.
    Now… is there any way of disable the validations?
    That is… i want to had a “clean form” button… but i can’t understand how to dow something as simples as form.reset or restart as in jquery native validation.
    Thanks m8.

    Keep up the good work

  17. @JMachacazut You need to kill input event and unbond the form,

    There is a method for that in 2.0

  18. Hi Cedric

    Along with everyone else, I absolutely love your validation engine.

    I was wondering though, if it’s possible to make it validate a form, that doesn’t post/submit, but instead just has a button/image button, that makes a javascript perform a calculation based on input from the user.
    I’ve look at the documentation, but haven’t found any function to tie to the button to achieve this.
    Is there a solution for this?

    Keep up the good work ๐Ÿ™‚

    /Tim

  19. Hi ,
    I am new for this validation , I have added successfully all the validation on the page on submit button . But I want to close error pop up div window of control automatically when the focus come into the control . Like : I have text box for email id , it having error . After submission it shows error pop . Now i want , when i click on email text box this error window automatically remove aur disappear from the page.

    plz help me

  20. Is there a way to disable the “inlineValidation” ? I remember in a previous version there was a simple option {inlineValidation: false}, but this seems to no longer work…

    The only time I want the form to validate is when the user presses submit. I’ve looked but it appears this is no longer possible? Is so, this is pretty bad. The live validation is quite annoying.

  21. Hi Cedric

    I’m currently using version 1.7.3 of your excellent Validation Engine.
    Your plugin is by far the best of it’s kind I’ve seen, and really enjoy using it.
    But I’m having problems adding new rule to the validation engine file.
    I’ve added the following to the validation engine file, in between integer and number:
    “zipPT”:{
    “regex”: /^\d{4}[-]{1}\d{3}$/,
    “alertText”:”* Not a valid PT zip”},

    And tried adding both this:

    and this:

    to the HTML without any luck, though it semi work’s with the 2nd one, with custom, and askes me to fill it out, but it does not validate my input, according to the zipPT rule I’ve made.

    Do you have any pointers at what I’m doing wrong?

    Best regards
    Tim

  22. I am using two submit butttons and set group to validate accordingly,please help its urgent

  23. I like the validation, just one thing, does your validation supports custom messages, and how can we implement them.

  24. Howdy, i study your weblog occasionally and i own a comparable 1 and i was just questioning for those who get a good deal of spam comments? If so how do you prevent it, any plugin or something you possibly can suggest? I’m obtaining so considerably lately it is driving me mad so any help is quite considerably appreciated.

  25. hello there and thank you for your info โ€“ Iโ€™ve definitely picked up anything new from right here. I did however expertise several technical points using this site, as I experienced to reload the site lots of times previous to I could get it to load correctly. I had been wondering if your web host is OK? Not that I’m complaining, but slow loading instances times will sometimes affect your placement in google and can damage your high-quality score if advertising and marketing with Adwords. Well Iโ€™m adding this RSS to my e-mail and could look out for much more of your respective interesting content. Ensure that you update this again very soon..

Comments are closed.