Title: Required fields
Last modified: April 26, 2023

---

# Required fields

 *  Resolved [smangas](https://wordpress.org/support/users/smangas/)
 * (@smangas)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/required-fields-66/)
 * According to the specifications, when you hide a required field it should not
   give an error, but it doesn’t work for me.
   I work with a plugin for payments 
   through Stripe (Accept Stripe Payments Using Contact Form 7 by ZealousWeb) and
   even though I have the tag inside a group, the form does not validate and shows
   that it could not be sent due to some error.
 * [group paystripe clear_on_hide]
    [stripe* stripe-1 “Pay”][submit “Pay”][/group]
 * I have it set this way and it always gives an error even if it is hidden.
   The‘*’
   in the stripe field cannot be removed because it is required for the plugin to
   work.
 * Thanks

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

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/required-fields-66/#post-16695256)
 * > I have it set this way and it always gives an error even if it is hidden.
   > The‘*’
   > in the stripe field cannot be removed because it is required for the plugin
   > to work.
 * This is the reason that it doesn’t work. The plugin is not designed to allow 
   the placement of the stripe tag in a form where it’s not filled out. This check
   is done on another level, and fixing this from my side would be a hack. The fix
   needs to happen on the side of the stripe plugin.
 * Something you could try, that might work, is to use disable_on_hide [https://conditional-fields-cf7.bdwm.be/disable_on_hide/](https://conditional-fields-cf7.bdwm.be/disable_on_hide/)
 * If the plugin is made in a sensible manner it should not take into account the
   field when it’s disabled, but there is a big chance that they simply didn’t anticipate
   this use case.
 * Anyway, feel free to give it a try. You’ll need the Pro plugin, but if it doesn’t
   work for you, you get a full refund if you let me know within 30 days.
 *  Thread Starter [smangas](https://wordpress.org/support/users/smangas/)
 * (@smangas)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/required-fields-66/#post-16695405)
 * Thank you very much Jules,
   I talk to my client to try the Pro version.I need 
   to fix this problem and now as we have it it is not working correctly.

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

The topic ‘Required 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [smangas](https://wordpress.org/support/users/smangas/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/required-fields-66/#post-16695405)
 * Status: resolved