title: Wordpress Gravity Forms get List values
body: <p>Can somebody point me in the direction on how to extract values from submitted forms containing list fields?</p>
  
  <p>I'm trying to create a front-end posting form using Gravity Forms, and then having the submitted values be assigned to custom fields made with Advanced Custom Fields.</p>
  
  <p>For normal fields, you can do this with the following:</p>
  
  <pre><code>add_action("gform_after_submission_1", "acf_submission", 10, 2);
  
  function acf_submission($entry, $form)
  {
     $post_id = $entry["post_id"];
     update_field('field_###', $entry['#'], $post_id ); 
     update_field('field_###', $entry['#'], $post_id ); 
     update_field('field_###', $entry['#'], $post_id );  
  }
  </code></pre>
  
  <p>Where field_### is the ACF custom field key, entry['#'] is the Gravity Forms field ID, and $post_id is the id of the post you want to update/store values to.</p>
  
  <p>Using entry['#'] works great with normal fields (text, paragraph, etc.), but list (repeater) fields are stored a bit differently. In the DB, the value looks like this (for a list field that has 3 fields (columns), and for somebody who clicked the add button to add an additional instance of the list field:</p>
  
  <pre><code>a:2:{i:0;a:3:{s:4:"Column 1 Name";s:7:"value input";s:6:"Column 2 Name";s:34:"value input";s:11:"Column 3 Name";s:24:"value input";}i:1;a:3:{s:4:"Column 1 Name";s:11:"value input";s:6:"Column 2 Name";s:19:"value input";s:11:"Column 3 Name";s:22:"value input";}}
  </code></pre>
  
  <p>I can't figure out how to extract those values and assign them to ACF fields. I tried entry['#.#'] as you would do for fields like address, but that didn't work.</p>