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.

Checkbox Population

  1. Hi,

    As always, I apologise if this has been asked - I did research a lot before posting.

    I have two very similar forms built on GF that pass the data via the query string method. This seems to work well for everything apart from the checkboxes. All I need is a true or false value (boolean?) to be passed from form to form (so if the user checks the box, it appears checked on the other form).

    Here is the form: http://getawaysondisplay.com/internal-form. That will then send an email to the client with a link that populates the other form.

    I have tried this code: http://pastie.org/6014156. This seemed to sort of help - it outputted the labels of the previously selected checkboxes - but this isn't really what I'm looking for.

    Could anyone point me in the right direction?

    Posted 11 years ago on Tuesday March 5, 2013 | Permalink
  2. I use this in my query string to populate check boxes:
    http://gravity.chrishajer.com/family-reunion-rsvp/?st=Illinois,Indiana,Nevada,Alabama,Confusion

    That will populate the state checkboxes (which has a parameter name of 'st') with all those states pre-checked.

    To mark a single checkbox pre-checked, you will still need it to have a parameter name, and then you can send the value in the query string. For example:

    http://gravity.chrishajer.com/terms-of-service/?tos=Yes

    I have my single checkbox set up with a Value of "Yes" and a parameter name of "tos". When you send that in the query string, the box is pre-checked.

    Posted 11 years ago on Wednesday March 6, 2013 | Permalink
  3. Thanks very much for this - I actually came to almost the same solution yesterday. Could be useful for anyone with the same issue...

    Posted 11 years ago on Wednesday March 6, 2013 | Permalink
  4. Thanks for letting us know you got this working.

    Posted 11 years ago on Wednesday March 6, 2013 | Permalink

This topic has been resolved and has been closed to new replies.