Title: Validation on hidden mandatory fields
Last modified: September 19, 2018

---

# Validation on hidden mandatory fields

 *  Resolved [jboehnisch](https://wordpress.org/support/users/jboehnisch/)
 * (@jboehnisch)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/validation-on-hidden-mandatory-fields/)
 * Hello,
 * Recently, the hidden mandatory fields no longer work as they should.
    I assumed
   that validation only take effect when a required field is displayed. But unfortunately
   I cant’t submit the form when a hidden mandatory field isn’t checked.
 * I am sure that this worked fine recently. My client gave me a hint.
 * Do you have any idea what might have gone wrong?
 * Corresponding part:
 *     ```
       <p>[acceptance GM-Consent optional]Lorem Ipsum[/acceptance]</p>
   
       [group group-consent]
       <p>[radio PME-Consent "E-Mail" "Telefon" "Beides"]</p>
   
       <p>[acceptance Share-My-Data-Consent]Lorem Ipsum[/acceptance]</p>
       [/group]
       ```
   
 * Thank you very much for your support!
    Best regards

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

 *  Thread Starter [jboehnisch](https://wordpress.org/support/users/jboehnisch/)
 * (@jboehnisch)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/validation-on-hidden-mandatory-fields/#post-10702820)
 * I have set up a test page on my system, reduced to the essentials.
    [https://www.roadshow2018.com/test/](https://www.roadshow2018.com/test/)
 * Would be glad if you could have a look.
 * I was hoping to get a quick reply as you already answered this morning on multiple
   other questions. 🙂
 * Thank you again in advance for your support.
    Best regards
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/validation-on-hidden-mandatory-fields/#post-10706378)
 * The acceptance field is an exception. It’s impossible to make this field optional,
   as it is intended to to accept terms and conditions.
 * Instead of using an acceptance field, use a mandatory regular checkbox instead.
 *  Thread Starter [jboehnisch](https://wordpress.org/support/users/jboehnisch/)
 * (@jboehnisch)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/validation-on-hidden-mandatory-fields/#post-10706863)
 * Thank you very much for your feedback.
 * As there is for the acceptance checkbox an option to use it as optional field
   I would say that it is also intended to work like that.
    But I’ve already replaced
   them in the meantime with the regular checkboxes. The problem here is that you
   can’t use HTML as checkbox text. But I could also solve this with a workaround.
 * Best regards

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

The topic ‘Validation on hidden mandatory fields’ is closed to new replies.

 * ![](https://ps.w.org/cf7-conditional-fields/assets/icon-256x256.png?rev=2072595)
 * [Conditional Fields for Contact Form 7](https://wordpress.org/plugins/cf7-conditional-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-conditional-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-conditional-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-conditional-fields/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [jboehnisch](https://wordpress.org/support/users/jboehnisch/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/validation-on-hidden-mandatory-fields/#post-10706863)
 * Status: resolved