Title: Advanced compound fields values not shown
Last modified: May 23, 2018

---

# Advanced compound fields values not shown

 *  [Jose Andres Piera](https://wordpress.org/support/users/japiera/)
 * (@japiera)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/advanced-compound-fields-values-not-shown/)
 * I’m trying to use your plugin in my website, but when I try to export advanced
   fields with subfields (like name or address), the values are not exported.
 * Thanks for your reespone

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Jose Andres Piera](https://wordpress.org/support/users/japiera/)
 * (@japiera)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/advanced-compound-fields-values-not-shown/#post-10311652)
 * Hi, I think I solved the issue, just changed your get_form_fields function by
   this one (I know there’ll be field types that maybe I’ve not contemplated, but
   it works for me). Hope it helps…
 * public function get_form_fields($form)
    { $fields = [];
 *  if (!count($form[‘fields’])) {
    return $fields; }
 *  foreach ($form[‘fields’] as $field) {
 *  if ( empty($field[‘inputs’])) {
    $fields[] = [ ‘id’ => $field->id, ‘label’ =
   > $field->label, ]; } else { foreach ( $field[‘inputs’] as $input) { if ( ! $
   input[‘isHidden’]) { $fields[] = [ ‘id’ => $input[‘id’], ‘label’ => “{$field-
   >label} ({$input[‘label’]})” ]; }
 *  }
 *  }
    }
 *  return $fields;
    }
 *  [Dan Moat](https://wordpress.org/support/users/tahninial/)
 * (@tahninial)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/advanced-compound-fields-values-not-shown/#post-10337813)
 * I have this issue also.
 * I tried the above code as a temporary solution but it only changed the fields
   to split First Name and Last Name but still didn’t show the actual content of
   those fields.
 * This seems to be the only free plugin with Gravity export so it’d be great if
   this could get an official fix soon.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Advanced compound fields values not shown’ is closed to new replies.

 * ![](https://ps.w.org/gdpr-for-gravity-forms/assets/icon.svg?rev=2331388)
 * [Gravity Forms: GDPR Framework Add-On](https://wordpress.org/plugins/gdpr-for-gravity-forms/)
 * [Support Threads](https://wordpress.org/support/plugin/gdpr-for-gravity-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/gdpr-for-gravity-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gdpr-for-gravity-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gdpr-for-gravity-forms/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Dan Moat](https://wordpress.org/support/users/tahninial/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/advanced-compound-fields-values-not-shown/#post-10337813)
 * Status: not resolved