WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Gravity Forms Sticky List

Sticky List is a Gravity Forms add-on that lets you list and edit entries from the front end.

Sticky List

Sticky List is an add-on for the WordPress plugin Gravity Forms that lets you list and edit entries from the front end. You can display a list on the front end where users can view, delete and edit submitted entries.

Features

  • Display a list of entries on the front end
  • Choose who can se the list; specific role, entry creator, all logged in users or anyone.
  • Support for (almost) all Gravity Forms fields
  • Multi page form support
  • Create/edit/delete WordPress posts from the front end
  • Conditional logic support
  • View, edit and delete existing entries from the front-end
  • Use existing entries as templates for duplication
  • Conditional notifications
  • Conditional confirmations
  • List sorting and search (using list.js)
  • List pagination
  • Custom column labels
  • Multiple lists in same page or post
  • Uses new Gravity Forms API and the official Gravity Forms Add-on framework
  • Fully customizable with dead simple styles to override
  • Fully localized. You can add your translation
  • Fully supported and maintained
  • Completely free and open source

Planned features

  • Support for multiple uploads in file field

Usage

  1. Upload and activate the plugin
  2. Go to the settings page of a form and click the Sticky List settings tab
  3. Enable Sticky List for that form and choose your settings
  4. Select the page/post where the form is embedded
  5. Go to the form editor and select what fields should be displayed in the list
  6. Put the shortcode in a page/post with the corresponding form id, i.e:
[stickylist id="1"]

If you want to display entries only from a specific user you can include the user ID like so:

[stickylist id="1" user="5"]

To use this in a template file, for example on the user profile page (make user that the variable $user_id holds the ID of the user who's profile is being viewed):

echo do_shortcode( "[stickylist id='1' user='" . $user_id . "']");

If you want to use the list on different pages and restrict viewing of entries to different groups you can include the showto parameter in the shot code. This parameter has three possible settings: creator, loggedin or everyone.

[stickylist id="1" user="5" showto="creator"]

If you want to filter out some entries depending on a value of a field you can use the attributes field and value like so:

[stickylist field="5" value="Test"]

The shortcode above would produce a list that only contained entries where the field with an ID of 5 had a value of "Test". You can check all field ID's in the form editor.

List and edit Gravity Form entries on the front end

Front end editing of entries has always been a problem in Gravity Forms. Solutions that exist are buggy and not very feature rich. Gravity Forms Sticky List aims to fill this gap and provide a simple and solid way to view, edit and delete entry submissions from the front end. The goal of the plugin is not to to display entries in a fancy way (GravityView already does that brilliantly) but to provide a simple, lightweight and rock solid way to list, edit and delete submissions on the front-end. Lists can be embedded in any post or page.

Delete Gravity Form submissions from front end

Gravity Forms Sticky List uses a simple ajax approach to deleting entries. Deleted entries are moved to trash or permanently deleted depending on the per form settings.

Create, edit and delete WordPress posts on the front end

If you attach a Post Field to your form you can use Sticky List to let your users create, edit and delete WordPress posts from the front end. This makes Gravity Forms more powerful and allows you to create all sorts of features for your users.

List entries from a specific user

You can use the list to display entries from a specified user. This is helpful when building for example a user profile and are looking to display that user's submissions on the front end at his or hers profile page. Se the usage section form more info.

Sort and search entries

Sticky List uses the fast and lightweight list.js to allow for sorting the list and searching the entries. Searching entries is fast and results are updated immediately.

Conditional confirmations and notifications

Gravity Forms Sticky List adds conditional confirmations and notifications so that different confirmations messages can be shown depending on if a new entry was submitted or if an existing entry was updated, and diffrent email notifications can be sent if an entry was added, updated or deleted.

Styling the list

Sticky List ships with a minimal stylesheet that is easy to override. The table has the class of .sticky-list attached to it which can be used to override the default styles. The stylesheet is located in sticky-list/css/sticky-list_styles.css in the plugins main directory. To override a style just copy it from sticky-list_styles.css and paste it in your themes css-file, then modify the style to your liking.

To style the View, Edit, Delete, Post, and Duplicate links you can use these CSS classes:

.sticky-list-view
.sticky-list-edit
.sticky-list-delete
.sticky-list-postlink
.sticky-list-duplicate

Custom capabilities

Sticky List adds two capabilities that can be used to allow users to edit and delete entries in the list. These are stickylist_edit_entries and stickylist_delete_entries. Users/roles with these capabilities will be able to edit/delete entries in the list.

Developers

Avalible filters
The filter filter_entries allows for filtering of the entries in the list.
Paramters: $entries (array of entry objects)

Example
This code (when placed in functions.php) would filter out all entries where field ID 1 equals "some-text"

add_filter('filter_entries','hide_some_rows' );
function hide_some_rows($entries) {
    foreach ($entries as $entryKey => $entryValue) {     
        if ($entryValue["1"] == "some-text") {
            unset($entries[$entryKey]);
        }
    }
    return $entries;
}

Documentation
There is a fully documented version of the plugin on the Github project page. This plugin is Open Source and pull requests are welcome.

Note: Gravity Forms version 1.8.19.2+ is required for this plugin.

Known issues

Multiple file uploads in same field does not work
This will be addressed in a future version of Sticky List.

Post image meta fields are not populated when editing an entry
When editing an entry that has WordPress Post Image Field the meta inputs are not populated with existing values. This is due to how Gravity Form saves the data. This issue wont get fixed unless Rocket Genious changes the way it handles these fields.

Not fully compatible with Gravity Forms "limit entries" and "No Duplicates" features
When imposing a limit to the number of entries allowed for a form the edit functionallity will stop working when the limit is reached. The same issue affect usage of the No Duplicate feature. If using this feature on a form entry edits wont save unless you change the input.

Requires: 3.0.1 or higher
Compatible up to: 4.4.7
Last Updated: 1 year ago
Active Installs: 2,000+

Ratings

4.8 out of 5 stars

Support

1 of 9 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1 100,2,2 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,2,2 67,3,2
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
50,2,1