How to load the previous entry of a logged in user with gravity forms

Imagine the following scenario: you have a membership site where users have to submit certain data but users are also allowed to come back and change their entries at a later stage. In that case it would be helpful if their previous entry would be automatically loaded into the form.

This could be accomplished with an addon such as Populate Anything from Gravity Wiz but what if you don’t want to buy yet another add-on? That is where some code can help out. I wrote a function that will do just that. Simply copy the script into your functions.php page and watch the magic happen.

Features list

Load the previous entry of the logged in user into the same form
Works for all forms by default but you can exclude forms if needed. See documentation
Support all common fields

How do I enable this?

1. Check the requirements

This snippet works only in combination with Gravity forms so you will need to have Gravity Forms installed and activated.

2. Install the snippet

Copy and paste the entire snippet into the functions.php of your child theme. If you don’t have a child theme then you best use a plugin such as “code snippets”.


  • The snippet will apply to all forms by default. You can exclude a form by adding the form id to the $excluded_forms array

Need help?

Reach out by leaving a comment or send me a message through the contact form

Notify of
Inline Feedbacks
View all comments
Scroll to Top