WP-Forms Lite custom field integration
-
I’ve seen the previous replies showing how to do this by pointing to the ibericode code snippet.
add_filter('mc4wp_integration_wpforms_data', function($data) { $data['FNAME'] = $_POST['wpforms']['fields'][4]; return $data; });
However, without documentation this is a little difficult to understand for amateur coders so please could you bear with me and answer a couple of questions.
The inspect element on my WP-Forms form shows:
<select id="wpforms-2672-field_6" class="wpforms-field-medium wpforms-field-required wpforms-valid" name="wpforms[fields][6]" required="required" aria-invalid="false"><option value="United States">United States</option><option value="United Kingdom">United Kingdom...</select>
am I right in thinking that in the code snippet I would use wpforms[fields][6] instead of [‘wpforms’][‘fields’][4]
Please could you be precise in answering with regard to brackets and quotes etc.
And I just change the FNAME in the code snippet to the MC tag (in my case COUNTRY?
Thanks in advance for your help
The page I need help with: [log in to see the link]
- The topic ‘WP-Forms Lite custom field integration’ is closed to new replies.