Title: Breaks WPForms checkboxes
Last modified: January 28, 2025

---

# Breaks WPForms checkboxes

 *  Resolved [miglenetiketa](https://wordpress.org/support/users/miglenetiketa/)
 * (@miglenetiketa)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/breaks-wpforms-checkboxes/)
 * Hello.
 * The plugin as it is breaks the wpforms checkbox component. To reproduce you can
   create a blank form and add the checkbox. Then submit the form by selecting values.
   Your first selected item will NOT be selected. At that point it’s possible to
   reproduce the issue by simply editing the form in admin. First save doesn’t even
   show the “form has been updated successfully” dialog upon saving.
 * Had to find the reason because we needed the form to work together with this 
   plugin. The issue is (at least currently) on line 45 of `compatibility/wpforms-
   lite.php`. There’s a missing =, without which the first index (namely, 0) evaluates
   to true, because it’s only logical for PHP to evaluate `0 == 'any random string'`
   to true.
 * For now we changed the condition ourselves on the server, but would be great 
   to have it fixed upstream so the next update doesn’t break it again.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Maya](https://wordpress.org/support/users/tdgu/)
 * (@tdgu)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/breaks-wpforms-checkboxes/#post-18272212)
 * Hi,
   Thanks for your suggestion with the fix. We already changed the code so the
   revision will be available in the next plugin release.Thanks

Viewing 1 replies (of 1 total)

The topic ‘Breaks WPForms checkboxes’ is closed to new replies.

 * ![](https://ps.w.org/wp-hide-security-enhancer/assets/icon-256x256.png?rev=2937681)
 * [WP Hide & Security Enhancer](https://wordpress.org/plugins/wp-hide-security-enhancer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-hide-security-enhancer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-hide-security-enhancer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-hide-security-enhancer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-hide-security-enhancer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-hide-security-enhancer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Maya](https://wordpress.org/support/users/tdgu/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/breaks-wpforms-checkboxes/#post-18272212)
 * Status: resolved