Skip Navigation

[Resolved] Dynamically populating a field in Gravity Forms

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by peterB-20 1 year, 2 months ago.

Assisted by: Minesh.

Author
Posts
#2659523

Hi,

I need some help with dynamic population of a GF field. I have read the guide "Dynamically Populating a Field" and the tutorial "Gravity Forms Dynamic Population: The Complete Guide for All Users"

The website url is hidden link and at the botom of the form is a test field named "untitled". This will be hidden as soon as succesful.

I use:
* Real Homes theme (Inspiry Themes)
* Toolset
* Gravity forms

The goal is to dynamically populate a Field and use that in Active Campaign.

The next trial works:

add_filter( 'gform_field_value_ftx_property_id', 'BN_property_id' );
function BN_property_id( $value ) {
return 'test!';
}

But what I like to establish is that the content of custom fields are loaded in the GV field. For example the "property ID of a house for sale" from the Real Homes field "REAL_HOMES_property_id" or from a Toolset custom field like "asking-price".

I have tried the "get" function but whatever I do I crashes the page.

In example for custom fields is missing in the tutorial.

Please advice how to solve this.

BR
Peter

#2659561

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Do you mean that you want to auto populate the gravity form field using the Toolset field value? If yes:

Can you please check the following related ticket that might help you:
- https://toolset.com/forums/topic/gravity-form-and-toolset/#post-1922137

Please correct me if I'm wrong and tell me what fields you want to work and what fields you want to auto-populate at what place with problem URL.

#2659581

Hi Minesh,

Well ....I started with reading this post yesterday but got distracted by the links to GF php solution.

Thanks! This works for Types. I only had to remove "item" from the shortcodes.

BR
Peter