Last Updated on
I briefly discussed Gravity Forms* in a previous blog post on WordPress form plugins. I’ve gotten more familiar with Gravity Forms since I’ve started using it over a year ago. It’s now a toss-up on which form provider I like better between Wufoo and Gravity Forms. They both have their advantages and disadvantages.
If your WordPress website has at least two users who can access and edit the Gravity Forms section (usually administrators), then you may have seen the locked form message. When this message appears, you cannot edit that particular form. If you try to edit a locked Gravity Form, you will receive a message like the following:
I played around for a couple hours experimenting with Gravity Forms using two WordPress administrator accounts for my own website, and I found three solutions to unlock a locked Gravity Form. Before attempting any of these solutions, update your version of Gravity Forms to the latest version. These solutions may not work with earlier versions of Gravity Forms.
1. Request Control of the Locked Gravity Form
Initially, I tried this with a couple of my web design and SEO clients without any success. My clients never received a message with my request to edit their Gravity Form because both WordPress users have to be on the same Gravity Form editing page. It both users who have Gravity Forms editing rights are on the same form edit page, the current form editor will see a modal window pop up that looks like this:
This modal window can take anywhere from a few seconds to a few minutes to pop up. If the current form editor accepts the request, the requesting user will see a modal window pop up that looks like this:
Like the 1st modal window, it can take anywhere from a few seconds to a few minutes for it to pop up. If you don’t have success with this method, you can try the next method.
2. Have the Current Gravity Form Editor Leave the Form Editor or Log Out
If the current form editor is at their computer, they can go to another section of the WordPress admin section. You can also log out the current form editor by accessing their profile from the Users section and clicking the Log Out Everywhere button.
It may take up to a few minutes, but the WordPress site user needing editing access to that particular Gravity Form will see the padlock disappear on the Forms page:
If you’ve waited over 10 minutes and the form that you want to edit is still locked, then you can try the last (and most technical) solution.
3. Deactivate and Reactivate Gravity Forms
Ian (from the comments below) suggested deactivating and reactivating Gravity Forms if you have a version higher than 22.214.171.124. He also mentioned that you may have to do this twice. I gave it a shot, and it indeed worked for me on the first try. I am mentioning this method after the 1st two methods because your forms won’t work for a few seconds if you deactivate and reactivate Gravity Forms. Still, I would use this method before moving on to the next method.
4. Delete ALL Transients from Your WordPress’ Database Options Table
I didn’t come up with this solution. All credit goes to Anthony Horton of Maddison Designs. I found his blog post by searching Google for “unlocking locked Gravity Form”, and his blog post was the first result. You can click here to read his blog post on unlocking a locked Gravity Form.
Warning: before doing this, be sure you have a backup of your website’s MySQL database. In case something goes wrong, you may need to restore it. First, on PHPMyAdmin, you’ll go to your options table (most likely wp_options). Then, you’ll click the Search tab, add
%_GFCache_% in the value field, and click the Go button.
You should see rows of data that have _transient in them. Delete all of those rows. You can do this by selecting the highest number in the dropdown form field to get the most rows that you can, click Check all, and click Delete.
If you still see transients, then continue deleting them until they are gone. All forms should now be unlocked for you to edit.
Thanks for reading this blog post. If you tried any of these solutions, I’d love to hear if any of them worked for you.