# Drop down api + live copy field

**URL:** <https://community.gravityforms.com/t/drop-down-api-live-copy-field/18561>\
**Category:** Get Help\
**Tags:** gravity-wiz, populate-anything\
**Created:** [November 29, 2024, 10:13am UTC](https://community.gravityforms.com/t/drop-down-api-live-copy-field/18561 "2024-11-29T10:13:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user6615885c57313017](https://avatars.discourse-cdn.com/v4/letter/u/839c29/32.png) [@user6615885c57313017](https://community.gravityforms.com/u/user6615885c57313017)\
**Post date:** [November 29, 2024, 10:13am UTC](https://community.gravityforms.com/t/drop-down-api-live-copy-field/18561/1 "2024-11-29T10:13:06Z")

</div>

Hi,  
I have 2 problems:

1. I want to get city names and streets from a gov api and add it to my city and streets field, can someone help me do it? Where do i put this code?
2. I want to show on the same form but on another page the choices that the user did on previews field, is that possible?  
I tried few things but didnt succeed.  
Thanks!  
Guy

---

<div class="post-metadata">

**Author:** ![scott-the-sorceror](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/scott-the-sorceror/32/2772_2.png) [@scott-the-sorceror](https://community.gravityforms.com/u/scott-the-sorceror)\
**Post date:** [December 2, 2024, 5:03pm UTC](https://community.gravityforms.com/t/drop-down-api-live-copy-field/18561/2 "2024-12-02T17:03:45Z")

</div>

Hi Anna,

Assuming the API returns JSON, this sounds like a good fit for [GP Populate Anything](https://gravitywiz.com/documentation/gravity-forms-populate-anything/) and the following snippet.

> <https://github.com/gravitywiz/snippet-library/blob/master/experimental/gppa-object-type-json-api.php>

You’ll have to make some changes to the snippet to make it compatible with your particular API, but if you have a Pro Gravity Perks license, we’ll be happy to help.

For previewing the results, Populate Anything’s [Live Merge Tags](https://gravitywiz.com/documentation/gravity-forms-populate-anything/#live-merge-tags) make this easy. Simply add an HTML field the form, and insert your merge tag like this: `@{all_fields}`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [January 1, 2025, 5:03pm UTC](https://community.gravityforms.com/t/drop-down-api-live-copy-field/18561/3 "2025-01-01T17:03:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
