PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. 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.

Placeholder text and clearit, checking fields on submission for Placeholder

  1. Regarding the "clearit" approach:

    "Please be aware that if you're using default values on fields you've defined as required, they will validate even if the user doesn't not populate them or change their value. This is due to the fact that the default value will be submitted as the form field value if they are not changed by the user."

    Surely this isn't an answer ... is there not a way to check the fields for the "Default Value" upon submit and make sure that the Placeholder text is not validated against?

    Posted 10 years ago on Thursday June 28, 2012 | Permalink
  2. David Peralty

    Yes, but you would have to manually do this through our gform_field_validation hook as it isn't a built-in feature.

    Also, some people want the default value to be submitted, which would make things counter intuitive. If you had a form submitting something that was as simple as "Support Request or Other" and you want Support Request to be default because that is what 99% of people would select anyways, then stopping Support Request from submitting because it is the default wouldn't be ideal.

    Posted 10 years ago on Thursday June 28, 2012 | Permalink
  3. I'll close this topic minicast and leave the topic where you posted the solution open. Thank you.

    Posted 9 years ago on Tuesday August 7, 2012 | Permalink

This topic has been resolved and has been closed to new replies.