I am trying to create an ‘Amend’ record form. I am using Gravity Forms + GFWPDB AddOn
The form connects to a database table record and populates the form fields with the existing data (in the record). It gets the record ‘ID’ from the querystring on the URL
The user can change/amend the content of any field(s) and on submitting the form the database record is updated with the contents of the field(s).
Please advise whether GF Perks can do this and which perk I should look at, and if possible the documentation which indicates the method.
Hey Samuel - thanks for getting back to me. I dont think I expressed myself clearly.
What I am trying to do is create the ‘update/amend’ form and populate it with data from a specific record. If I can do it within the Gravity Forms environment then I can figure out how to do it withthe MySQL. My problem is that I cannot work out how to do it in the Gravity Forms environment.
Can I use a php snippet (which gets a value from a MySQL table) as the default value in the settings of a Gravity Form field.Can you point me in the direction of an example of this please.
Thank you
Thanks clarifying. What you describe seems possible with Populate Anything. Depending on what you need to populate, Populate Anything has embedded capabilities to populate data based on the current user, post, or other database values.
We don’t have a sandbox, but you can try Gravity Perks Risk-Free for 30 days.
Anthony, the field_values parameter for the GF shortcode is only for “static” values that you type along with the shortcode parameters, you can’t use that for dynamic values from your database.
The link I posted previously shows you an example of what you need to do to populate a GF drop down field, there are examples for other field types in the following links:
To be honest if you have already your form working with the Gravity Forms - WPDB / MySQL Connect add-on add-on and you don’t have enough coding experiencing, your best bet would be to continue using this add-on or try if the Perk suggested by Dario can fit your needs.