Gravity Wiz

Magically enhanced tutorials, snippets and plugins for Gravity Forms!

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

Gravity Forms Entry Blocks

The easiest way to display and edit Gravity Forms entries.

This plugin is part of Gravity Perks, a suite of 41+ essential Gravity Forms addons with support you can count on.

  • View All Perks
  • Buy Gravity Perks

Early Access

This perk is still undergoing active development as we progress towards a public beta. It is available for early access to any Gravity Perks customer.

What does it do?

Gravity Forms Entry Blocks adds a new block to the WordPress Block Editor for displaying and editing entries. Use a standard variation like the Entries Table to display a list of your entries or completely customize your layout with the Entries Loop and hundreds of supported blocks.

Features

  • Display Gravity Forms entries on the frontend.
    Let users view entries anywhere on your site. Display entries in pages, posts, and even widgets!
  • Edit entries with ease.
    Edit (and delete) entry data on the frontend without requiring access to the WordPress backend.
  • Fully customizable layouts with multiple default variations.
    Display entries in a table or build your own block-based layout with the Entries Loop.
  • Harness the power of the Block Editor.
    Built for the Block Editor with support for hundreds of blocks out of the box.
  • Automatic updates.
    Get updates and the latest features right in your dashboard.
  • Legendary support.
    We’re here to help! And we mean it.

Documentation

  1. An Overview
  2. How do I enable this functionality?
  3. Layouts
    1. Entries Table
      1. Managing Columns
      2. Custom Columns
    2. Entries Loop
      1. Customizing the Entries Loop
    3. Entries Loop and Table Views
    4. Edit Single Entry
      1. Notifications when Editing
      2. Feed Handling when Editing
    5. Single Entry
  4. Entry Query
  5. Filters Block
  6. Permissions
    1. Who can view entries?
    2. Who can edit entries?
  7. Using Entry Blocks in the classic editor and other page builders.
  8. Hooks

An Overview

How do I enable this functionality?

After installing and activating Gravity Forms Entry Blocks, the Gravity Forms Entries block will be available within the Block Editor.

Add a new Gravity Forms Entries block to your post.
Select your form.
Choose a layout variation.

Layouts

GF Entry Blocks offers four layout variations: Entries Loop, Entries Table, Edit Single Entry, and Single Entry. The variation is selected when adding the block to the page.

Entries Table

The Entries Table variation displays entries in a table format. This is a great way to display lots of entries on a single page.

Managing Columns

Columns can be managed using the Summary Columns setting. By default, three columns are displayed: Entry ID, Edit Link, View Link.

Add any form field as an additional column by selecting it from the columns dropdown. Once added, you can drag-and-drop the column into the desired order.

Remove a column by clicking the remove icon for the column you wish to remove.

Custom Columns

Custom columns allow you to include custom content (including merge tags) as a column in your table. To add a custom column, select the Custom option from the columns dropdown.

Once added, click the wrench icon to launch the custom column modal.

Custom columns can contain static content, merge tags, and HTML. For example, you could insert this into a custom column to create an edit link that displays the Entry ID:

<a href="{edit_url}">{entry_id}</a>

Entries Loop

The Entries Loop variation displays entries using the {all_fields} merge tag. Each entry’s values are rendered the same as they are when the {all_fields} merge tag is inserted into a form confirmation or notification. By default, each entry will include a View and Edit link below the entry values.

To customize the layout of the {all_fields} merge tag, check out our All Fields Template.
Customizing the Entries Loop

The Entries Loop is powered by merge tags. Adding or removing merge tags changes what is displayed. By default, the three merge tags displayed are: {all_fields}, {view_link}, and {edit_link}.

Click on the Entries Loop block to edit the merge tags for the block. Additional merge tags can be found under the merge tag icon.

Entries Loop and Table Views

The Entries Loop and Table layout variations consist of three views: Entries View, Single Entry View, and Edit Entry View. Each of these views can be customized using the Block Editor. To switch between the views, select the view from the block toolbar.

Edit Single Entry

The Edit Single Entry variation will display the form with a single entry pre-populated. This is identical to the Single Entry View that is available in the Entries Loop and Table variations layout, except it is limited to a single entry. By default, the entry displayed is the most recent one submitted.

To modify which single entry is displayed, modify the Entry Query setting.
Notifications when Editing

When editing an entry via Entry Blocks, the the “Entry Edited via Entry Block” notification event is triggered. Any notification configured for this event will be sent when an entry is edited via Entry Blocks.

Feed Handling when Editing

Feeds are not processed when an entry is edited via Entry Blocks. If you have a use case that requires this, we’d love to hear about it.

Single Entry

The Single Entry variation displays a single entry using the {all_fields} merge tag. This is identical to how the Entries Loop displays entries, but is limited to a single entry. Like the Edit Single Entry variation, it defaults to the most recent entry.

Entry Query

The Entry Query determines what entries are displayed in GF Entry Blocks. Each block can have its own query and supports filtering, ordering, and limits. To modify the query on a block, first select the block, then click on the Entry Blocks icon.

Some of the GP Entry Blocks views are groups. If you select a single item in the group, you’ll first need to select the entire group before the GP Entry Blocks icon will display.

Once the block is selected, find the Entry Query setting on the right side of the editor.

From there, you can edit the filters, set the ordering, and the number of entries to display per page.

Filters Block

The Filters block adds interactable filters to the page. These filters can be users to search and filter entries on the front end based on the entry field values. To add a Filters block, first select the Entries block, then click the plus icon in the bottom-right of the block. Then, select “Filters” in the pop-up menu.

Having trouble with getting the plus to appear? Try the List View in the Block Editor. Once activated, you can easily select the Gravity Forms Entries block.

Once added, you can customize the Filters block by selecting which fields to filter on, whether to include a search, and the filter orientation.

The filtering can then be used on your page to make finding the correct entry easy for your users.

Permissions

Who can view entries?

By default, all entries displayed via Entry Blocks will be publicly viewable.

To only show the current user entries that belong to them, add a filter where the entry’s “Created by” property is the same as the “Current User ID”.

Who can edit entries?

The entry owner and any user whose role has been granted the corresponding Gravity Forms capability are able to edit an entry. The “Edit” link will not show up for users who do not have the correct permissions.

Using Entry Blocks in the classic editor and other page builders.

GF Entry Blocks works with other WordPress editors like Classic, Elementor, Beaver Builder, and Divi. This is made possible with Reusable Blocks Extended. Here’s how it works:

Create a Reusable Block and add your GF Entry Block into that.
Grab the shortcode for the Reusable Block, for example [reblex id='7'].
Insert that shortcode into your alternative WordPress Editor.

Hooks

  • gpeb_delete_entry
  • gpeb_delete_entry_permanently
  • gpeb_trash_entry
Gravity Forms has hundreds of hooks. Check out our Gravity Forms Hook Reference for the most thorough guide to Gravity Forms’ many actions and filters.

Perk Deets

  • Version 1.0-alpha-2
  • Updated July 19, 2022
  • Released March 3, 2022
  • View Changelog

Changelog

1.0-alpha-2

  • Added new GP_Entry_BlocksGF_Queryer::attach_to_current_block() method for getting the current block being rendered to determine things like if the entry is being edited. Example: GP_Entry_BlocksGF_Queryer::attach_to_current_block()-&gt;is_edit_entry()
  • Added ability to change the No Entries Found message for the Entries Table and Entries Loop blocks. To improve consistency, the Edit Form block's Edit Confirmation has been moved into a panel named "Messages."

1.0-alpha-1.14

  • Added ability to use registered Entry Meta as Summary Columns in the Entries Table block.
  • Added IP, Payment Method, Payment Status, Status, and Transaction ID as available properties to use in the Entry Query filters.
  • Added Date Created, Date Updated, Payment Status, Payment Method, Transaction ID, IP, and Created By as available Summary Columns in the Entries Table block.
  • Added new gpeb_loop_entry_content PHP filter with default filters for replacing merge tags and auto oEmbed.
  • Fixed issue where Edit Form confirmation setting would not work correctly if the Entries block is rendered using a Reusable Block.

1.0-alpha-1.13

  • Improved compatibility with File Upload fields when editing entries.
  • Added new gpeb_delete_entry and gpeb_trash_entry actions.
  • Added a check to Entries blocks that will ensure that the form is active and not trashed prior to displaying entries.
  • Fixed Post Category fields not always properly re-populating in the Edit Form block.

1.0-alpha-1.12

  • Fixed issue where the Entries Limit setting would revert to the default after reloading the Block Editor.

1.0-alpha-1.11

  • Fixed issue where HTTPS was not properly detected in some cases which would cause the Edit/View/Delete links to redirect from HTTPS to HTTP.

1.0-alpha-1.10

  • Improved compatibility with GP Read Only by preventing Filter fields from being read only.
  • Fixed Signature fields not showing their existing signature when entries are being edited.

1.0-alpha-1.9

  • Fixed an issue where duplicating Entries blocks could result in the UUID set in the block's context to also be duplicated which would cause the same filters to be used for the block that was duplicated
  • Added a guard against http:// being automatically prepended before merge tags inside links. The replacement will happen on the frontend when the block is rendered.

1.0-alpha-1.8

  • Added support for excluding unsupported field types from form output.

1.0-alpha-1.7

  • Added support by searching for full names in name fields with the Filters block.
  • Improved compatibility with older versions of PHP.

1.0-alpha-1.6

  • Fixed issue where Filters block failed to redirect to filtered view.

1.0-alpha-1.5

  • Fixed issue where ReCAPTCHA fields would intefere with the Filters block.
  • Fixed issue where conditional logic was incorrectly applied to fields in the Filters block.

1.0-alpha-1.4

  • Added support for filtering by checkboxes. Selected checkboxes will be treated as OR's rather than AND's.
  • Added new "Search All" filter field type to the Filters block.

1.0-alpha-1.3

  • Added new "Entry Deleted/Trashed via Entry Blocks" event that's available for notifications.
  • Added badge to the "Edit Filters" button to show the number of filter groups on the block.
  • Added ability to add custom labels for Filter fields.
  • Improved styling of sortable select control in Block Editor to make it easier to see where the dropped item will be.
  • Added new Filters block.
  • Fixed issue where passing empty/falsey values to the Entry Query filters would result in the filter not being used.

1.0-alpha-1.2

  • Added new toggle to Summary Columns in the Entries Table block to allow sorting.
  • Fixed issue where the bottom border of the Entries Table block header was not showing if using the stripes style.
  • Fixed issue where columns in the Entries Table block with no designated custom label were showing a blank value rather than the default label.
  • Improved the delete link by defaulting to trashing entries instead of deleting permanently. The gpeb_delete_entry_permanently PHP filter can be used to filter whether or not entries should be deleted immediately.
  • Fixed regression with delete link not using a confirmation dialog after i18n.
  • Updated handling of multi-file uploads when editing to further improve compatibility with File Upload Pro.
  • Fixed issue where the text domain was not being loaded.
  • Updated remaining non-i18n'd strings to be internationalized.
  • Improved compatibility with GP Nested Forms by using the simple template when displayed in the Entries Table block.
  • Added new gpeb_before_render_block and gpeb_after_render_block PHP actions.

1.0-alpha-1.1

  • Added support for editing parent entries that contain Nested Form fields.
  • Improved editing experience by excluding display-only fields (e.g. HTML Fields, Pages, Sections) from Query Filters and the Summary Fields setting.
  • Fixed issue where using the merge tag dropdown in the block controls would result in the merge tag value disappearing shortly after changing focus.
  • Added ability to change the label for any column in the Entries Table block.
  • Added {today} merge tag that can be used in query filter custom values. The {today} merge tag supports modifiers such as {today:+5 days}.
  • Fixed issue where removing any of the default Summary Columns in the Entries Table block would result in all of them being deleted.

1.0-alpha-1.0

  • Hello World!

All Perks

  • GF Address Autocomplete
  • GF Advanced Calculations
  • GF Auto List Field
  • GF Auto Login
  • GF Better User Activation
  • GF Blocklist
  • GF Conditional Logic Dates
  • GF Conditional Pricing
  • GF Copy Cat
  • GF Date Time Calculator
  • GF Disable Entry Creation
  • GF Easy Passthrough
  • GF eCommerce Fields
  • GF Email Users
  • GF Entry Blocks
  • GF Expand Textareas
  • GF File Upload Pro
  • GF Inventory
  • GF Limit Checkboxes
  • GF Limit Choices
  • GF Limit Dates
  • GF Limit Submissions
  • GF Live Preview
  • GF Media Library
  • GF Multi-Page Navigation
  • GF Nested Forms
  • GF Notification Scheduler
  • GF Page Transitions
  • GF Pay Per Word
  • GF PayPal One-time Fee
  • GF Placeholder
  • GF Populate Anything
  • GF Post Content Merge Tags
  • GF Preview Submission
  • GF Price Range
  • GF QR Code
  • GF Randomizer
  • GF Read Only
  • GF Reload Form
  • GF Terms Of Service
  • GF Unique ID
  • GF Word Count

Copyright © 2022 · Powered by WordPress · Gravity Wiz LLC

  • Support
  • Affiliates
  • About
  • Sitemap
  • Terms & Conditions of Use
  • Privacy Policy
  • Cookies Policy

Get access to hundreds of Gravity Forms plugins for free!

Enter your email and receive a list of our most popular free snippets and plugins for Gravity Forms.

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