Results 1 to 2 of 2

Thread: No Error Message If Name is Missing

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    2

    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.

  2. #2
    WPS Team
    Join Date
    Feb 2012
    Location
    Canillo, Andorra
    Posts
    284
    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,

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •