I talked to the development team about this once, and you can use one form and pre-select checkboxes by sending field values in the shortcode. Here is the shortcode I used on a page:
[gravityform id="215" name="Pre-select a checkbox" title="false" field_values="sport=baseball,tennis"]
Here's the page: http://gravity.chrishajer.com/pre-select-a-checkbox-in-the-shortcode/
I did not select a default checkbox when I set up the field.
You'll see that Baseball and Tennis are pre-checked. I used values for my checkboxes and sent those (you see they are lower case in the shortcode, and I used lowercase when I entered the form values. Also, be sure on the Advanced tab, you check "Allow field to be populated dynamically" and then enter a parameter name. I used "sport" as my parameter name. You can see that in use if you use the query string to set a value. It will override the shortcode values:
http://gravity.chrishajer.com/pre-select-a-checkbox-in-the-shortcode/?sport=football
Hope that helps.
Posted 12 years ago on Monday November 26, 2012 |
Permalink