Skip to content

Instantly share code, notes, and snippets.

@softiconic
Last active December 2, 2023 18:54
Show Gist options
  • Save softiconic/8fd6d81f72b6f64657c5f30d53892def to your computer and use it in GitHub Desktop.
Save softiconic/8fd6d81f72b6f64657c5f30d53892def to your computer and use it in GitHub Desktop.
Set a placeholder text for the date field in Contact Form 7.
<input type="text" onfocus="(this.type='date')" onblur="(this.type='text')" name="birth" value="" class="form-control wpcf7-form-control wpcf7-date wpcf7-validates-as-required wpcf7-validates-as-date" aria-required="true" aria-invalid="false" placeholder="Date of birth">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment