Title: Dynamic Dropdown cannot validate
Last modified: May 17, 2024

---

# Dynamic Dropdown cannot validate

 *  Resolved [stilografico](https://wordpress.org/support/users/stilografico/)
 * (@stilografico)
 * [2 years ago](https://wordpress.org/support/topic/dynamic-dropdown-cannot-validate/)
 * Since the latest updates when a select is dynamically populated (using wpcf7_form_tag_data_option
   or simply wpcf7_form_tag) it cannot be validated because the validation probably
   checks for unexisting value in backend. 
   The validation fails on frontend already
   before any submission and from my console I cannot see any ajax execution which
   could be pointed as responsible for the validation.I already attempted to bypass
   validation adding some custom code using the filter “add_filter(‘wpcf7_validate_select*’,‘
   dateviaggio_validation_filter’, 100, 2);”but with no success.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [2 years ago](https://wordpress.org/support/topic/dynamic-dropdown-cannot-validate/#post-17764310)
 * Where can we see the website in question?
 *  Thread Starter [stilografico](https://wordpress.org/support/users/stilografico/)
 * (@stilografico)
 * [2 years ago](https://wordpress.org/support/topic/dynamic-dropdown-cannot-validate/#post-17767938)
 * I stumbled upon this request which is about the same problem
   [https://wordpress.org/support/topic/undefined-value-was-submitted-through-this-field/](https://wordpress.org/support/topic/undefined-value-was-submitted-through-this-field/)
 * I solved (temporarily) removing the validation filter.
 * It would be interesting to be able to conditionally remove this validation since
   in fact when the select options are generated dynamically it makes no sense to
   try validate them since they do not exist in backend.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Dynamic Dropdown cannot validate’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [stilografico](https://wordpress.org/support/users/stilografico/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/dynamic-dropdown-cannot-validate/#post-17767938)
 * Status: resolved