No Error Message If Name is Missing
No Error Message If Name is Missing
If a user only puts an email address with no name it processes the form anyway when it should throw an error.. I can not have this happening, I need them to put their name.
-
- Posts: 283
- Joined: Tue Feb 28, 2012 10:36 am
- Location: Canillo, Andorra
Hi,
you can use Custom Jquery and enter this code :
jQuery("#popup form").submit(function() {
if (jQuery('input[class="name_field"]').val()==""){
alert("your message");
return false;
}
});
If you use prefilled text for the name change this
if (jQuery('input[class="name_field"]').val()==""){
by this
if (jQuery('input[class="name_field"]').val()=="The prefilled text you use"){
Regards,
you can use Custom Jquery and enter this code :
jQuery("#popup form").submit(function() {
if (jQuery('input[class="name_field"]').val()==""){
alert("your message");
return false;
}
});
If you use prefilled text for the name change this
if (jQuery('input[class="name_field"]').val()==""){
by this
if (jQuery('input[class="name_field"]').val()=="The prefilled text you use"){
Regards,