• 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

    (@japiera)

    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;
    }

    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.