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.

Checkboxes seems to be broken.

  1. liquid1982
    Member

    Hello, I have the following problem with Checkboxes field: if I check multiple choices, only the last one gets saved.
    Plus, If I create a new form that contains only a Checkboxes field, no value gets saved.
    My Wordpress version is 3.1.2, and the Gravity Form Plugin version is 1.5.2.1.

    I need some help since I have to deploy my project.

    Thanks for helping,
    Vincenzo

    Posted 14 years ago on Friday May 20, 2011 | Permalink
  2. liquid1982
    Member

    Another strange behavior: if I mark the Checkboxes field as Required, I obtain a "This field is required" message even if I select something, and the submission is blocked.

    Posted 14 years ago on Friday May 20, 2011 | Permalink
  3. This isn't default behavior, nobody else is reporting the issue and i'm unable to recreate this issue on my test sites which means it's most likely something specific to your site. It could be a plugin or theme conflict. Before we do further tests you first need to rule out plugin and theme conflicts by following the instructions here:

    http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict

    Posted 14 years ago on Friday May 20, 2011 | Permalink
  4. liquid1982
    Member

    Carl, thank you for the quick answer. I was excluding a theme issue because the problem was present even in the "preview" submission from the backend.

    But now I realized that the issue is caused by my theme by activating Twenty Ten. Could you suggest some points where I could look? It's a customized theme, it has several custom content types, custom taxonomies, widgets, metaboxes... but I prefixed (almost) everything (variable names, taxonomies, content types...) with "pcc_" to try to avoid conflicts.

    I also noticed that the "bad" entries are not showing the green tick in entries list. Hope this could help. If you want I can send you my work.

    Thank you,
    Vincenzo

    Posted 14 years ago on Saturday May 21, 2011 | Permalink
  5. liquid1982
    Member

    Hello Carl,

    I found the problem.
    It is caused by the following simple line of code:

    setlocale( LC_ALL, 'it_IT');

    in my functions.php file.

    this seems to break the Checkboxes field.

    You can try by yourself by adding the line in the Twenty Ten's functions.php file and create a simple test form that contains a Checkboxes field.

    I need to deploy my project: could you suggest me a workaround?

    Thanks,
    Vincenzo

    Posted 14 years ago on Monday May 23, 2011 | Permalink
  6. There isn't a workaround I can give you right now, I am going to have our lead developer look into this and we will see if we can replicate it locally. After we replicate it locally we will see why it's happening and what needs to be changed to make it work. We will then implement changes and send you an updated version of Gravity Forms.

    Posted 14 years ago on Monday May 23, 2011 | Permalink