Title: Required fields / Conditional groups
Last modified: July 23, 2017

---

# Required fields / Conditional groups

 *  Resolved [marius1989](https://wordpress.org/support/users/marius1989/)
 * (@marius1989)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/required-fields-conditional-groups/)
 * First of all, amazing plugin. Thanks a lot.
 * I am referring to the following threads initial post:
    [https://wordpress.org/support/topic/required-fields-nested-under-conditional-groups/](https://wordpress.org/support/topic/required-fields-nested-under-conditional-groups/)
 * I want to appear the submit button after a required field is filled with specific
   values.
    This works, but I also can submit the form just by click the enter button
   on my keyboard. If I add for example a required acceptance button, that is appearing
   after entering the specific value in the required field, it doesn’t matter anyway,
   because it does not get honored.
 * You said, that it was working that way before in the mentioned thread.
    Is there
   a way to set this up in the current version?
 * Actually I just want to appear the submit button, after filling the required 
   field with the specific value (which works) but not having the opportunity to
   send the form anyway with a click on the enter button on the keyboard.
 * Is there any solution or workaround for this?
    A required acceptable checkbox-
   as mentioned- does not work, because it is not honored while disappeared.
 * Thanks a lot.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/required-fields-conditional-groups/#post-9355144)
 * I suppose you could add this code somewhere in the header of your theme in order
   to disable submit on enter:
 *     ```
       <script>
       jQuery(document).ready(function( $ ) {
         $('form input').on('keypress', function(e) {
           return e.which !== 13;
         });
       });
       </script>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Required fields / Conditional groups’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/required-fields-conditional-groups/#post-9355144)
 * Status: resolved