-
ianggjamesAsked 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>
-
CharlieReplied 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
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.
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.
-
ianggjamesReplied on January 20, 2015 at 9:56 AMThanks 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
... -
CharlieReplied 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.