Support » Plugin: Contact Form 7 » make select field required while using placeholder

  • I’m working on a project where a form has a select field built dynamically from a list of pages, and we have placeholder text for the first option. That part is working fine.

    The problem is that it is a required field, and our placeholder text is returned as the selection when the form is submitted. Since it’s not an empty field, the form is (wrongly) accepted.

    What can we do to force the select field to trigger a validation error (“please select something here”) when a user “selects” our placeholder text (in other words, fails to make a selection).

    Thanks in advance.

    https://wordpress.org/plugins/contact-form-7/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘make select field required while using placeholder’ is closed to new replies.