PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

prepopulate form from pre-existing entries then update not insert

  1. Hi there,

    I would like to know how to use the gravity forms hooks to create an update form which will pre-populate itself from pre-existing data from a form already submitted by the user.
    The two forms will be identical, the first one is for the user to submit an application form to be displayed on the site, the other form is for the user to update their application form details at a later date if necessary.

    which hook do I use to draw through the related information and pre-populate the update form?
    how do I tell this form to update the data rather than insert data into a new database entry?

    I will be using the gform_pre_submission_filter(if this is the correct one) to add a table entry of the users id on original form submittal (user will have to register to be able to fill in the original form in the first place), so the form entry id will be associated with the users id in the database. I can then tie in from the wp logged in user id which user is using the update form and in turn which entry to populate it with. I just have no idea how to get the form to pre-populate and update rather than insert.

    Thanks for a brilliant plugin by the way, gravity forms really is a master piece!

    Posted 8 years ago on Thursday March 24, 2011 | Permalink
  2. This is doable. There is another forum post that discusses this and has code snippets from David Smith, one of our rocketgeniuses, that provides example code. You can view the forum thread here:

    http://www.gravityhelp.com/forums/topic/allow-forms-to-talk-to-one-another

    Posted 8 years ago on Thursday March 24, 2011 | Permalink
  3. nice one, I'll check that out, thanks for the reply!

    Posted 8 years ago on Thursday March 24, 2011 | Permalink
  4. hmmm, not quite sure if thats what I need it to do.

    I need the user to be able to submit data via a form, display the data on the site, then be able to update the data at a later date via a form that populates itself from the pre-existing data, then updates the database rather than inserting new data.

    Is this doable?? I'm kinda getting to grips with the hooks etc, I'm just not sure of which one(s) to use or how to make the form update rather than insert

    Posted 8 years ago on Thursday March 24, 2011 | Permalink
  5. Ahh okay, yea that is something different. That is possible, but it's a much more complex customization. We don't have any examples for that, you would have to pre-populate the fields and then update rather than save a new one. It is doable, but it's a more complex customization. You may want to consider hiring a developer with Gravity Forms customization experience to implement it for you.

    Posted 8 years ago on Thursday March 24, 2011 | Permalink