Please Note: We are no longer using forums to facilitate standard support. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Some required fields wont display validation message

  1. Running WP 3.3.1 and GForms 1.6.2

    I have a simple 4 field form, all 4 are required. All 4 fields have a validation message but only the middle 2 display the validation error message.

    here is my form.

    Thanks in advance,

    Posted 3 years ago on Thursday January 5, 2012 | Permalink
  2. Is it possible the placeholder text is fouling this up? Can you remove the placeholder text and see if it works?

    Also, does it submit properly from the form preview?

    Posted 3 years ago on Friday January 6, 2012 | Permalink
  3. So it is the placeholder text for the 2 text inputs, but it doesnt cause the issue with phone or email. I'm assuming b/c the placeholder text doesnt meet hte validation requirments for email "using @" and phone "using 111-222-3333"

    How could I put logic on those 2 fields so that they don't validate on submit without changing them from?

    Thanks for the help!


    Posted 3 years ago on Friday January 6, 2012 | Permalink
  4. You can use the gform_validation hook to check the value, and if it's the default value, return an error. That code will go in your theme's functions.php file.

    Posted 3 years ago on Tuesday January 10, 2012 | Permalink


Support Tickets

Open A New Support Ticket
 Open A New Priority Support Ticket *

* Developer license holders only