Invalid Email Address Passed Validation Rule?

  • ianggjames
    Asked on January 2, 2015 at 9:19 AM

    My form "Questionnaire - teachers' details - New & Update Forms" has the email address field defined as required, validated and confirmed - but I have just received an email notification where the email address was just "Kay Taylor"; so clearly not a valid email address.

    How can this happen?

    The JS on my webpage is:

       JotForm.init(function(){

          $('input_153_confirm').hint('Confirm Email');

          $('input_153').hint('ex: myname@example.com');

          $('input_154_confirm').hint('Confirm Email');

          $('input_154').hint('ex: myname@example.com');

          $('input_155_confirm').hint('Confirm Email');

          $('input_155').hint('ex: myname@example.com');

          JotForm.initCaptcha('input_150');

       });

    and the Input coding is:

            <div id="cid_2" class="form-input">

             <input  onDISABLEDkeypress="return noenter()" type="email" class=" form-textbox validate[required, Email]" id="input_153" name="q153_email153" size="30" value="" />

              <br>

              <input onDISABLEDkeypress="return noenter()" type="email" class="form-textbox validate[required, Email, Email_Confirm]" id="input_153_confirm" style="margin-top:8px;" size="30" />

            </div>

     

     

     

    Jotform Thread 489551 Screenshot
  • Charlie
    Replied on January 2, 2015 at 11:42 AM

    Hi,

    Upon checking the URL of the website you shared, which is http://www.bellydancer.org.uk/2008/teachers.html, I see that you have done a lot of changes and it displays differently from the original form which is http://www.jotformeu.com/form/43272453969364. Is it because you embed the form using its full source code? May I know how you embedded your form to your website?

    When checking the standalone link of your form, I see that the validation rule works as expected

    Invalid Email Address Passed Validation Rule? Image 1 Screenshot 30

     

     

    The Javascript you mentioned, is it something that you have hard coded or is it together with the full source code? You can see in the screenshot below how we add Validation rule in our fields.

    Invalid Email Address Passed Validation Rule? Image 2 Screenshot 41

    No need to add Javascripts or manually adding them up as this is already being placed in the form builder. If you are constantly editing your form and you are manually embedding the form using the source code, you will need to re-embed the code to your website every time you do changes in your form.

    I hope this helps. Let us know if you need more information on this.

    Thank you.

  • ianggjames
    Replied on January 20, 2015 at 9:56 AM
    Thanks Charlie

    Your response prompted me to check one by one each of the lines of code that I’d embedded; and I discovered that I’d corrupted the DIV statement preceding the email input boxes – which prevented them from linking to the javascript (which I do re-embed from the jotform source code whenever I make any changes to my webpage).

    All working now; thanks for your help.

    Regards,

    Ian

    ...
  • Charlie
    Replied on January 20, 2015 at 10:04 AM

    Hi Ian,

    Thanks for updating us and I'm glad that you managed to find the problem with the code.

    If you need any assistance again or have other concerns, please do feel free to open up a new thread here in the forum.

    Best regards.