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:
    http://screencast.com/t/wtybC77Jl

    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: http://screencast.com/t/nGz8Ssoq

    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: http://screencast.com/t/RNBVtk4ceuMN

    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 6 years ago on Wednesday March 13, 2013 | Permalink
  2. I'll flag this one for the development team to take a look at.

    Posted 6 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:
    http://pastie.org/6473051

    Posted 6 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.
    http://www.screencast.com/t/MKgToFfQa

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