Completed

Gravity Forms: populate values to dropdown field via code

Description:

I have 2 Gravity forms. 1st form (Project) is hosting a field called "Member". This field is populating his values from a Form called "members". This is working fine - so far. But i can only choose from values who are already stored in this form "Members" ... so - if i want to select a new value i need to switch to my "Members" Form - add the the Member - save it ... switch back to my "Project" Form - reload the form and now i can select the new "member" ... This procedure is far too cumbersome ... So i want to add a Button beside my dropdown - popup opens and i can add a new value who is stored in my "Members" Form. After submitting the dropdown values - they needs to be reloaded in the dropdown before i can select the new value.

----------------------------------------------------------------------------------------------------

Solution:

You could do that with the gform_after_submission hook and a Gravity Forms API function.

The gform_after_submission hook gives you the proper time to execute your code:

[login to view URL]

At that time (after submission) you can call one of a couple different GFAPI functions:

[login to view URL]

or

[login to view URL]

The main difference is that submit_form will run all the after submission stuff (like notifications and feeds) if you need that. Otherwise, you can use the add_entry function.

You will need to create the code to use with that filter and those API functions, to actually insert the entry. But that will allow you to add an entry for another form when the first form is submitted. If you have any other questions about this customization, please let us know.

gform_after_submission - Gravity Forms Documentation - Gravity Forms Documentation

This PHP action hook is executed at the end of the submission process (after form validation, notification, and entry creation). Use this hook to perform actions after the entry has been created (i.e. feed data to third party applications).

GFAPI Class - Gravity Forms Documentation - Gravity Forms Documentation

The Gravity Forms API Functions provides developers with a future-proof way to access some of the common core functionality in Gravity Forms.

GFAPI Class - Gravity Forms Documentation - Gravity Forms Documentation

The Gravity Forms API Functions provides developers with a future-proof way to access some of the common core functionality in Gravity Forms.

Skills: PHP, WordPress

See more: php forms populate, openmeetings google code description, dropdown field graphic, populate state dropdown selecting country drop, easy populate sort order field, sample code populate data dropdown msaccess, gravity forms populate, gravity forms total based calculation field, use data from one field to populate other fields in an acrobat fill-in forms, gravity forms populate field from database, gravity forms populate html field, gravity forms populate field from another field, gravity forms populate dynamically from another field, gravity forms tab to next field, gravity forms multi select dropdown, gravity forms populate dropdown from database, gravity forms date of birth field, gravity forms calculate values, gravity forms populate field based on another field, gravity forms populate anything

About the Employer:
( 5 reviews ) St. Johann in Tirol, Austria

Project ID: #29947799

Awarded to:

aftabyounas

ok got it . this will be done according to your requirments . message me and share details so we can proceed further. thanks

€30 EUR in 1 day
(318 Reviews)
7.4

4 freelancers are bidding on average €27 for this job

shayona163

hello i am expert in wordpress and woocommerce i have 8 year experience in this field you will satisfy with my work i can start work right now thanks

€50 EUR in 1 day
(221 Reviews)
7.1
ShrineWeb

I have a few queries in relation to the specs of the project. Could we please have a word? My Skills: PHP and WordPress

€8 EUR in 14 days
(84 Reviews)
6.3
mattfranc25

Hi, I just read your job posting and it sounds like you need an wordpress expert. Over the last 5 years, I developed many wordpress websites. Especially, I am very fmailiar with theme customization, plugin customizatio More

€19 EUR in 7 days
(0 Reviews)
0.0