# Dynamically populate list - 'add row' empty

**URL:** <https://community.gravityforms.com/t/dynamically-populate-list-add-row-empty/4376>\
**Category:** Get Help\
**Tags:** custom, list-field, gform\_field\_value, dynamic-population\
**Created:** [April 6, 2020, 8:36pm UTC](https://community.gravityforms.com/t/dynamically-populate-list-add-row-empty/4376 "2020-04-06T20:36:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bart](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@Bart](https://community.gravityforms.com/u/Bart)\
**Post date:** [April 6, 2020, 8:36pm UTC](https://community.gravityforms.com/t/dynamically-populate-list-add-row-empty/4376/1 "2020-04-06T20:36:36Z")

</div>

Hello,

I’ve been trying to dynamically populate a list in Gravity forms. As I just need the first field out of three populated I found this code to be working well:

```auto
add_filter( 'gform_field_value_snapshotList', 'populate_snapshotList' );
function populate_snapshotList( $value ) {
  $list_array = array(
            array(
                'Product type' => 'Pension',
                'Pension Provider' => '',
                'Plan number' => '',
            ),
  );
    return $list_array;
}

```

The problem is that I’d like the viewer to have an option to add a new row to the list, this row is not populated anymore. I’ve been trying to add more arrays but this on the other side displays the number of arrays which kind of defeats the purpose of adding new rows… Is there an easy way of doing this?

Thank you

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 5, 2022, 8:50am UTC](https://community.gravityforms.com/t/dynamically-populate-list-add-row-empty/4376/2 "2022-01-05T08:50:16Z")

</div>


