# Populate the value of a field based on the selection of another field

**URL:** <https://community.gravityforms.com/t/populate-the-value-of-a-field-based-on-the-selection-of-another-field/18068>\
**Category:** Get Help\
**Tags:** populate-anything, dynamic-population, gravity-wiz\
**Created:** [August 26, 2024, 12:01pm UTC](https://community.gravityforms.com/t/populate-the-value-of-a-field-based-on-the-selection-of-another-field/18068 "2024-08-26T12:01:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user61a62dcb9b987388](https://avatars.discourse-cdn.com/v4/letter/u/96bed5/32.png) [@user61a62dcb9b987388](https://community.gravityforms.com/u/user61a62dcb9b987388)\
**Post date:** [August 26, 2024, 12:01pm UTC](https://community.gravityforms.com/t/populate-the-value-of-a-field-based-on-the-selection-of-another-field/18068/1 "2024-08-26T12:01:08Z")

</div>

Heya.

I’ve looked around for this far and wide and couldn’t find a solution.  
All the posts here either offer GP Populate Anything or no solution at all.

I have two fields.  
One is a radio button with two options, the other is an address field.  
The radio button is a simple yes/no.  
What I want to do is make the address field’s value to change based on the input of the radio button.  
If it’s a “yes”, then the address is one value, if it’s “no” then the address is another value.  
Simple as that.  
I don’t want to say how much time I’ve spent looking for this and I couldn’t find it.  
I’m guessing this is easy with GF’s dynamic population feature but I don’t know how to write code.  
Populate anything I find is either useless for this or I can’t make it work.  
Their documentation is garbage.  
Any help would be appreciated.  
I’m also happy to pay someone to just do it.  
Cheers

---

<div class="post-metadata">

**Author:** ![roxy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/roxy/32/17307_2.png) [@roxy](https://community.gravityforms.com/u/roxy)\
**Post date:** [August 27, 2024, 8:03am UTC](https://community.gravityforms.com/t/populate-the-value-of-a-field-based-on-the-selection-of-another-field/18068/2 "2024-08-27T08:03:39Z")

</div>

Hey Kaloyan,

You can achieve this with [GP Populate Anything](https://gravitywiz.com/documentation/gravity-forms-populate-anything/) and Gravity Forms’ built-in conditional logic by creating two address fields, each with its respective address value.

You can then use GP Populate Anything to dynamically populate these fields with the correct addresses. Then, set up conditional logic to display “Address Field 1” if the radio button selection is _“No”_, and “Address Field 2” if the radio button selection is _“Yes”_.

This setup allows the address field to update automatically based on the user’s radio button choice. 🙂

Hope this helps!

---

<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:** [September 26, 2024, 8:04am UTC](https://community.gravityforms.com/t/populate-the-value-of-a-field-based-on-the-selection-of-another-field/18068/3 "2024-09-26T08:04:11Z")

</div>

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