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.

Save checkbox selections into custom usermeta

  1. Hello,

    1 - Here is a screenshot of the form I am referring to:

    2 - As you can see, we have multiple checkboxes in a single field entry, and we want to save them into a custom usermeta field: See screenshot:

    3 - However, in the Forms > User Registration admin screen the terms themselves (checkbox options) show up as individual options, with no option to store all of the checkbox data in a single field: See screenshot:

    Can you please advise me on what the best way is to store data from an array of checkboxes into the usermeta, either as multiple keys or a serialized array?

    Should i create a custom filter instead of using built in functions? If so, how do I save that when the form is submitted?

    Any help you can provide will be most appreciated.

    [ EDIT ] I am using:
    Gravity Forms latest version (1.6.12)
    User Reg. add-on V. 1.5.beta1

    Note - I am a php programmer so custom coding options are most welcome ~ if this feature is already being worked on, it would be helpful to know what progress you have made so far. thx

    Posted 8 years ago on Wednesday March 13, 2013 | Permalink
  2. I'll flag this one for the development team to take a look at.

    Posted 8 years ago on Wednesday March 13, 2013 | Permalink
  3. Gotta love when we get posts like this, with all the nice screenshots and details. Thank you!

    The best solution to your problem will be to use one of our hooks and manually save your checkbox in user meta. You will want to use the gform_user_registered hook.

    Following is an example to get you started:

    Posted 8 years ago on Wednesday March 13, 2013 | Permalink
  4. I have a similar issue when I am presenting the same form again for the user to update their information. The checkboxes don't render a checked box.

    Posted 8 years ago on Monday May 27, 2013 | Permalink