Gravity Form checkboxes mapping
-
I have a Gravity Form with Checkboxes.
When this form is submitted, each checkbox is posted as its own value (see input_7_* below).*** Post (Form) *** https://www.example.com/contact/ Array ( [input_1_3] => Donald [input_1_6] => Duck [input_4] => email@example.com [input_7_1] => Option 1 [input_7_2] => Option 2 [input_7_5] => Option 5 [input_7_7] => Option 7 )This is hard to work with, as you would need to re-define the “3rd-Party Integration Service” settings if you add a new checkbox option.
For the moment I’ve solved this by using the hooks to modify the data, but perhaps there should be some built-in function for this as I think this might be a common issue?
What I would like to see, is, instead of mapping…
input_7_1 -> myoptions input_7_2 -> myoptions input_7_3 -> myoptions input_7_4 -> myoptions input_7_5 -> myoptions input_7_6 -> myoptions input_7_7 -> myoptions…making it possible to set up one mapping, such as:
input_7_* -> myoptionsOr is there already another implemented solution to this problem I see?
The topic ‘Gravity Form checkboxes mapping’ is closed to new replies.