Gravity Wiz

Magically enhanced tutorials, snippets and plugins for Gravity Forms!

  • Gravity Perks
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    • Documentation
    • Support
    • Account

Edit Gravity Forms Entries on the Front End

The easiest way for users to edit a Gravity Forms entry on the front end.

Last updated February 5, 2020 | Written by Scott Buchmann 38 Comments

This article requires the GP Easy Passthrough perk. Buy Gravity Perks today to get this perk plus 33 other premium Gravity Forms plugins!

  • View the Plugin
  • Buy Gravity Perks

Overview

If you have ever filled out a form anywhere on the web, you’ve probably wanted an easy way to edit the entry. It’s easy to skip a field, typo a postal code, or worse. Have you ever submitted a form with your own name misspelled? I have. It’s embarrassing.

The most common reason most forms don’t offer an edit option is that it’s complicated. Forms are typically designed for a simple task: capture user input one time. They often lack the capability to retrieve a previous entry, let alone make edits to that entry.

We’re going to show you an easy way to add that capability to any of your Gravity Forms with GF Easy Passthrough.


  1. Set Up an Easy Passthrough Feed
  2. Install and Configure Snippet

Step 1 – Set Up an Easy Passthrough Feed

Navigate to the form’s Settings and click on Easy Passthrough to set up an Easy Passthrough feed.

Easy Passthrough Feed

Set the form as its own Source Form. All of the standard fields will automatically map because the source form and target form are the same form.

Easy Passthrough Editable Form

Step 2 – Install and Configure Snippet

Gravity Forms doesn’t include a built-in way to edit entries on the front end. This simple snippet will grab the last submitted entry ID (via Easy Passthrough) and use that to update the entry when the form is submitted.

Download Code
<?php
/**
* Gravity Perks // Easy Passthrough // Edit Entry
*
* Edit entry ID specified in field with current form submission.
*
* @version 1.0
* @author David Smith <david@gravitywiz.com>
* @license GPL-2.0+
* @link http://gravitywiz.com/...
* @copyright 2019 Gravity Wiz
*/
// Update "123" with your form ID.
add_filter( 'gform_entry_id_pre_save_lead_123', 'my_update_entry_on_form_submission', 10, 2 );
function my_update_entry_on_form_submission( $entry_id, $form ) {
if ( is_callable( 'gp_easy_passthrough' ) ) {
$session = gp_easy_passthrough()->session_manager();
$update_entry_id = $session[ gp_easy_passthrough()->get_slug() . '_' . $form['id'] ];
}
return isset( $update_entry_id ) && $update_entry_id ? $update_entry_id : $entry_id;
}
view raw gp-easy-passthrough-edit-entry.php hosted with ❤ by GitHub

To use it, update the 123 with your Form ID.

Wrapping Up

If a visitor submits a form and navigates back to the form, Easy Passthrough will automatically pre-populate all of the form’s fields with the previous entry. Then, thanks to the snippet, the existing entry will be updated instead of creating a new entry.

Easy Passthrough uses a session cookie to pass data from one form to another. If that cookie is expired, it will not pass any data.

For users that have an account on your site, you can activate the “Use logged in user’s last submitted entry” option in the Easy Passthrough settings. This automatically refreshes the session cookie so data will always be passed for the configured form.

Help Us Take it Further

This is designed to work as simply as possible but there is a lot we could do from here. Tell us how you’d want to use this. We’ll collect your feedback and improve the functionality over time.

Did this resource help you do something awesome with Gravity Forms? Then you'll absolutely love Gravity Perks; a suite of 32+ essential add-ons for Gravity Forms with support you can count on.

  • View All Perks
  • Buy Gravity Perks

Filed Under: How To edit entries gp easy passthrough snippet

Comments

  1. Paul says

    January 15, 2021 at 7:52 am

    hi, I have follow up question. If a user has submitted multiple forms during a period of time. How can we show a list of those forms in the front-end, which the user can select and re-edit and submit again? Can we show this for instance in combination with your Better user activation or autologin add-on? Kind regards.

    Reply
    • Ryan Donovan says

      January 15, 2021 at 11:34 am

      Hello Paul, We do have a tutorial found here on how a basic way on how to edit entries https://gravitywiz.com/edit-gravity-forms-entries-on-the-front-end/. If you are looking for a more robust solution, GravityView does offer a full suite for front end editing.

  2. dribbble.com says

    January 7, 2021 at 8:20 am

    I do agree with all of the concepts you’ve presented to your post. They are very convincing and can definitely work.

    Nonetheless, the posts are very quick for beginners. May just you please extend them a bit from subsequent time? Thank you for the post.

    Reply
  3. Kevin says

    December 4, 2020 at 6:40 pm

    I have a job application form a user fills out and multiple pdf forms are generated from it. However if the same logged in user came back and went to the job application again i want all the fields to populate and then save as a new entry. This way new PDFs are created. This way the job applicant isn’t having to apply again and enter all their info. Is this doable?

    Reply
    • Samuel Bassah says

      December 7, 2020 at 5:46 am

      Hi Kevin,

      This should be doable using the tutorial above. Enabling the option to use the logged-in user’s last submitted entry, will ensure that the form is populated with the last submitted entry the user made. However, since you want to create a new entry for every submission made, you’ll exclude the snippet given in the tutorial.

      In case you’re having difficulties setting it up, you can get in touch via our support form, so we can take a closer look at your form set up and further assist you.

      Best,

  4. Sheikh Md Rukunuddin Osmani says

    October 26, 2020 at 4:58 am

    Hi!

    I have a following scenario:

    I have a form with some fields ( for example: tracking id ( unique), name, email, address, position). It is to be noted during after the form submission name and email will not be submitted. There is another form with the fields tracking id, name and email. When a user needs to submit the second form he/she needs to put the same tracking id of the original form and with the new values for name and email fields. I want that when the second form is submitted the first form’s name and email fields of the same entry ( matching with the tracking id) is populated. No other fields will be updated like position and address fields.

    Is it possible to perform this using gravity flow auto-populate and easy passthrough. Please explain how to do this?

    I am a gravity flow customer.

    Reply
    • Sheikh Md Rukunuddin Osmani says

      October 26, 2020 at 5:09 am

      Sorry! I am a gravitywiz customer that I wanted to say.

    • Samuel Bassah says

      October 26, 2020 at 11:47 am

      Hi Sheikh,

      This should be possible with GP Easy Passthrough and GP Populate Anything but I’ve replied to your question via email so that you can send us an export of the forms.

      Best,

  5. Brian Tetrault says

    October 11, 2020 at 3:53 pm

    Have a form where I’m using Populate Anything shortcodes— e.g. @{:6} —to populate radio button options from other radio button fields within the same form (works flawlessly). When trying this, I complete the form and all normal radio fields load with my previous entry, but the Populate Anything shortcode radio fields don’t “save”. They instead go back to the default state as if a new entry is being started. Is there a way to carry the shorcode selected Radio field along with all the rest?

    Reply
    • Brian Tetrault says

      October 11, 2020 at 4:03 pm

      Adding: the radio field only isn’t saved when reloading when the @{:6} selection is chosen.

    • Ryan Donovan says

      October 12, 2020 at 10:22 am

      Hey Brian, We noticed that you are a Gravity Perks license holder and have reached out to you via our support channel. Looking forward to assisting you with this one. 😃

  6. Billie says

    September 16, 2020 at 6:12 am

    Hey Ryan great post.

    One quick question, if I want to apply this to all the forms, is their a way in doing so without entering where ‘gform_entry_id_pre_save_lead_XXX’ applies to all forms?

    Sorry for my lame example, my knowledge is at a limited stage :)

    Cheers Billie

    Reply
    • Samuel Bassah says

      September 16, 2020 at 7:27 am

      Hi Billie,

      To apply the snippet to all forms, remove the Form Id after the filter name, so it will be just “gform_entry_id_pre_save_lead”.

      I hope this helps.

      Best,

    • Billie says

      September 16, 2020 at 8:32 pm

      Thank you Samuel, works a treat :)

    • Billie says

      September 16, 2020 at 8:37 pm

      Samuel, a long shot question :)

      Is there any way we can ‘select’ which past entry to populate? Any directional guide would be great…

      Rgds Billie.

    • Ryan Donovan says

      September 17, 2020 at 10:52 am

      Hey Billie, Great question. With this tutorial, you would only pull in the most recent previous entry. If you wanted to select, you could use something like GP Populate Anything to populate all the previous entries from the user in a dropdown and allow them to select which one. Then with Populate anything, you would populate the choices based off the dropdown selection.

  7. Henry Su-Ho Yoo says

    September 8, 2020 at 9:52 pm

    Does GP Easy Passthrough support repeater field of Gravity Forms?

    Reply
    • Samuel Bassah says

      September 9, 2020 at 7:07 am

      Hi Henry,

      GP Easy Passthrough currently doesn’t support the repeater field of Gravity Forms but it works with the GP Nested Form

      Best,

  8. Mauricio Ramirez says

    August 26, 2020 at 8:03 am

    Hello Ryan,

    not sure I get this right. Your snippet to edit entries is based with Easypasstrough. But since I would like to modify a specific entry, I would use populate anything. Will your snippet above still work to edit entries? If so what do I need to do.

    Thanks

    Reply
    • Samuel Bassah says

      August 26, 2020 at 9:23 am

      Hi Mauricio,

      I’m not sure I understand you correctly but are you looking to allow your users to edit entries after submission? If that is correct, then this Snippet with Easy Passthrough should work for you. What the snippet does is that it updates a matching existing entry instead of creating a new entry when the user resubmits the forms. You may also want to check out this snippet that populates form fields with existing entries, bypassing the entry_id via the URL Param and updates the entry on submission. I hope this helps.

      Best,

  9. Greg says

    August 18, 2020 at 6:28 pm

    I wonder if Easy Pass Through Feed + Populate Anything can be used in such a case:

    Form 1 contains the fields: user’s email, name, number of points. And there is already a lot of data in it.

    Now I would like to make a form in which the user, after entering the e-mail address, will show all entries from form 1 for this e-mail address. Additionally, the name and number of points fields will be automatically filled in. There can be a dozen or so such items. And now you will be able to modify the number of points for each entry separately.

    Is it possible with these two plugins?

    Reply
    • Ryan Donovan says

      August 18, 2020 at 9:53 pm

      Hello Greg, This would be a perfect example. You can take the most recent entry and either pass it through using Easy Passthrough or use populate anything to create a single dropdown field that contains all the previous entries via a title or entry ID. When the user selects an option, all the field below are populated via the perk. A third option would be a dedicated plugin like GravityView which gives you full control over all the entries. 😃

  10. Arvind says

    July 5, 2020 at 3:35 pm

    Hi there

    Suggestion to take this further

    Notification Emails many a times may do not always go through, either due to an update in another plugin, or due to Email host issues of the sender or the receiver, or could be due to many other reasons or just that the user simply wants the notification again because he didn’t receive it. There is currently no solution to this provided by anyone – So the user informs the site owner (by email!) and the site owner navigates to the form and the entry and then re-sends the notifications (of course after a couple reminders :) from the user) using the backend admin – which is really cumbersome when there are many users who keep requesting the notifications on a regular basis for a zillion other problems they have

    The Possibility of adding an option for users to be themselves able to Re-send ‘selected’ ( ie as allowed and set, by the site admin) notifications from the front end itself would be quite a problem solver for many people i guess. Because many a times notifications do not for several reasons get through always. This option could be given to the users on the confirmations page that appears after submitting the form. (Of course the admin should be able to select which notifications the user is allowed to re-send) In other words – the back-end button of re-send notification be made available. So we could say “Didnt Receive your email? Click here to Re-send it!”

    Thanks guys for considering this.

    Reply
    • Arvind says

      July 5, 2020 at 3:43 pm

      “If a visitor submits a form and navigates back to the form, Easy Passthrough will automatically pre-populate all of the form’s fields with the previous entry. “

      Here an option could be given – to simply resend the notification. So while the user sees (like – for his assurance – he doesnt want to change anything) but he just requests for the notification to be re-sent from the front end!, if thats possible

    • Ryan Donovan says

      July 6, 2020 at 9:59 am

      Hello Arvind, this is a great request. Technically you could create a page either with EasyPassthrough or Populate Anything where the user could return to a form and resubmit the form resending the notification. Let us know if something like this would work for you. 😊

    • Arvind says

      July 10, 2020 at 1:03 am

      ok. Yes that would work. I will try that especially with populate anything also thank you very much

  11. Tyler Priest says

    June 24, 2020 at 11:47 pm

    Hi there,

    Is the Entry ID field required for this to work? If so what field do you use for this, ‘Unique ID?

    If you have multiple forms and want to use the Unique ID as an identifier what would you recommend to pass the Unique ID from one form to another? They are one after another and only accessible by logged in users.

    Thank you, Tyler

    Reply
    • Ryan Donovan says

      June 25, 2020 at 9:11 am

      Hello Tyler, I think the tutorial found here would be more along the lines of what you are looking for. That would require Gravity Forms Populate Anything. Let us know if that would work out for you. If you need further assistance with this one, please drop us a line through our support system. 😊

  12. Mauricio says

    June 18, 2020 at 6:29 am

    If I understand right this a new form which we link to the original form to change values, correct? Does this support pricing? I am trying to find a way to modify a form after submission and get the pricing to change. I use gravity forms for events, I often have users changing their mind on the selected activities and pricing could be involved. Currently, I can edit most value, but not the product fields. Thanks

    Reply
    • Ryan Donovan says

      June 18, 2020 at 9:37 am

      Hello Mauricio, Great question. In this example, this is the same form passing the data to itself, so when a user returns to this form, it pulls up their previous data. With that being said, you can use this for a separate form as well if needed. As for the pricing, I have just tested this and you should be able to edit the product fields through Easy Passthrough.😊

  13. Nima Vahnani says

    June 1, 2020 at 12:21 pm

    Hi there, can I provide the possibility for users to edit everything that they have filled out on the gravity form my form is about 7 pages with so much conditional logic…

    Reply
    • Ryan Donovan says

      June 3, 2020 at 9:32 am

      Hello Nima, this tutorial would be for more of a basic form setup. As explained, front end editing could get really complicated really fast. The multiple pages would be no problem and the conditional logic should not be an issue as you will be directly editing the same form. Of course, if you have a test site, you could test the configuration and see if you could get it to work for your liking. Another option would be to use a dedicated plugin such as GravityView to edit on the front end. If you do have a Gravity Perks license, you can always drop us a line and we could take a deeper dive into your form. 😃

  14. Nima Vahnani says

    May 31, 2020 at 10:34 am

    Hi there. thank you for the great job. I have a question just to make sure I got it right and this is what I want. I have a very long gravity form (it includes 7 pages) which is for job applicants and their CVs. I was wondering how to provide the possibility of editing the CV and information they have filled out and update their information and CV in their account. is this my solution?

    Reply
    • Marie says

      June 3, 2020 at 9:08 am

      Did you get a solution ?

    • Ryan Donovan says

      June 3, 2020 at 9:41 am

      Hello Marie, Do you have a similar question? Let us know in a new comment. 😃

    • Ryan Donovan says

      June 3, 2020 at 9:40 am

      Hello Nima, you should be able to use this on a multipage gravity form. Unfortunately, EasyPassthrough does not support File Upload fields so you would not be able to update a new CV but all their information can be edited.

    • Dario Maim says

      July 16, 2020 at 7:33 pm

      Hi!

      A workaround to support FileUpload in EasyPassthrough would be to put the field in a NestedForm (another Great Perk from GravityWiz). That way the field will be editable.

  15. Jillian Harman says

    April 25, 2020 at 2:44 pm

    How do i get this to work when the form is using GF’s User Registration feature? When I try to update a form, I keep getting errors flagging the username and email as already being used.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Categories

  • How To (64)
  • News (21)
  • Plugins (14)
  • Releases (7)
  • Resource (3)
  • Snippets (58)
  • Tutorials (57)
  • Updates (104)

Recent Posts

  • How to Send a Follow-Up and Pre-Fill Information
  • How to Update Posts with Gravity Forms
  • Gravity Wiz Weekly #104
  • The Complete Guide to Using Gravity Forms With Zapier
  • Gravity Wiz Weekly #103

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2021 · Powered by WordPress · Gravity Wiz LLC

  • Support
  • Affiliates
  • About
  • Sitemap
  • Gravity Perks
    ▼
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    ▼
    • Documentation
    • Support
    • Account