PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Disappearing CheckBox Bug

  1. While building a new form today, I added two checkbox groups, each containing one checkbox.

    One of the checkbox groups has now disappeared from the admin view, although it's still being displayed when I view the form on the site.

    Since I can't see the invisible checkbox in the editor, I'm unable to delete it, rename it, etc.

    Posted 12 years ago on Monday June 6, 2011 | Permalink
  2. I found the source of the problem. I had added class="hidden" to that particular field, which caused it to be hidden in the admin screen.

    It might make sense to use javascript to remove the 'hidden' class from all fields in the admin view, since it causes them to disappear completely :-)

    Posted 12 years ago on Monday June 6, 2011 | Permalink
  3. Hi Xioup, thanks for the suggestion. In the meantime, you can use the "gform_hidden" class to hide fields on the front-end but remain visible in the back end. :)

    Posted 12 years ago on Monday June 6, 2011 | Permalink
  4. That's inheriting the "hidden" class from the default WordPress admin CSS. It's generally advisable to use more unique class names so they don't inherit properties you don't want from existing rules. We'll take a look at overriding that for the admin in the future. As David mentioned, you can use the "gform_hidden" class to do the same thing.

    Posted 12 years ago on Monday June 6, 2011 | Permalink