A plugin that makes your Gravity Forms stick!
Sticky Form is a WordPress plugin for Gravity Forms that enables forms to be “sticky”. A sticky form stays populated with the users submitted data. The data is retrieved from the actual entry. This makes the same entries editable from both back- and front end.
The sticky form is persistent so that when the user returns, all previous data is pre populated with his/hers previous submission.
Note: There is a bug in earlier versions the Gravity Forms API that prevents Sticky Form from working correctly. Please update Gravity Forms. For more information, please see the FAQ section.
Gravity Forms persistens, or stickyness, is usefull if you have a form that acts as a user profile, company profile or in other similar situations where the data needs to be persistant every time a user visits that form.
Sticky Form uses a new Gravity Forms hook to save the submission to the same entry rather than creating a new entry and deleting the old one. This makes read and starred status stick!
There is a fully documented version of the plugin on the Github project page. This plugin is Open Source and pull requests are welcome.
This plugin is based on Gravity Forms Data Persistence Add-On Reloaded.
Note:Gravity Forms is required for this plugin.
/wp-content/plugins/
directoryYes, to some extent. The plugin supports one file upload per form. To output the link to the file use {upload} in a HTML field. Future versions of this plugin will support multiple files.
Sticky Form stores the data in an actual Gravity Forms entry. The advantage is that the entry can be edited on the back end and the new data will be used to populate the form on the front end.
Also, Sticky Form does not just delete the old entry and save a new one, thus keeping its read and starred status.
There was a bug in the Gravity Forms api that prevented fields from getting saved in the entry. The bug was fixed in the latest version of Gravity Forms. Make sure you use an updated version. If you are not able to update Gravity Forms you can easily apply the patch manually to plugins/gravityforms/includes/api.php
On line 510
, remove
if (empty($entry_id)) $entry_id = $entry["id"];
and replace with
if (empty($entry_id)) { $entry_id = $entry["id"]; }else{ $entry["id"] = $entry_id; }