GravityView 2.4

Just Released: GravityView 2.4!

Just Released: GravityView 2.4!

πŸ“† Happy Emoji Day! πŸŽ‘πŸ€Έβ€β™‚οΈ

July 17 is World Emoji Day, and also the release date of Version 2.4 of GravityView! This GravityView update includes much-requested functionality and bug fixes. Alas, there were no additional emoji included in GravityView. This was, indeed, an oversight. 😿

Here are some highlights of the release:

Display an entry counter with the {sequence} Merge Tag

Learn about the {sequence} Merge Tag.

We added a {sequence} Merge Tag, which allows you to add a counter to the results in a View. This is a handy addition. Check out the video above for more information, and you can read about the Merge Tag on our docs site.

Show all entries when exporting a CSV

Customers love the functionality in GravityView that allows exporting entries as CSV by adding /csv/ to the URL. That functionality had a limitation, though: by default, it would only export the number of entries shown on a page (with a default of twenty-five). We were asked many times “How do I export all my GravityView entries to CSV at once?”

The new "Show all in CSV" setting in GravityView.

We heard you: In 2.4, we added a checkbox to export all entries at once. To enable in your View, check the new “Show all in CSV” checkbox.

Changes to who can edit a View

We are changing the capabilities required to add and edit a View in GravityView. Before Version 2.4, users with the Author role were able to create and edit Views, even if they lacked a capability called unfiltered_html. This capability gives users the permission to add HTML to a site that may include code that isn’t safe, like external JavaScript. In 2.4, we tightened security by requiring users to have the unfiltered_html capability to edit a View.

We understand this may be an inconvenience, and apologize! Here’s how to add the required capability to an existing role (such as Author) on your site.

All the changes

Here’s the full changelog for the release. If you have any questions, please email us at support@gravityview.co and let us know!


2.4 on July 17, 2019

We tightened security by limiting who can edit Views. Read how to grant Authors access.

  • Added: A new Result Number field and {sequence} Merge Tag learn all about it!
  • Added: {date_updated} Merge Tag (see all GravityView Merge Tags)
  • Added: Option to output all CSV entries, instead of a single page of results
  • Fixed: Settings compatibility issues on Multisite
  • Fixed: CSV output for address fields contained Google Maps link
  • Fixed: When editing an entry in Gravity Forms, clicking the "Cancel" button would not exit edit mode
  • Fixed: Some fatal errors when Gravity Forms is deactivated while GravityView is active
  • Fixed: Search All Fields functionality with latest Gravity Forms

Developer Updates:

  • Breaking Change: Users without the unfiltered_html capability can no longer edit Views.
  • Added: gravityview/security/allow_unfiltered_html to not require unfiltered_html. Dangerous!
  • Added: gravityview/template/field/address/csv/delimiter filter for CSV output of addresses

Version 1.16

Laying the ground-work for a new View Builder

Version 1.16 continues our progress toward having a better backend. We’re migrating older code to newer code so that we can support a brand-new View Builder interface. Building a View will become much faster and more powerful.

We’ll be posting updates soon with progress. It’s coming along very nicely!

Merge Tags Galore

We want you to be able to display any and all entry data. Some entry data’s not available via Merge Tag by default in Gravity Forms. We’ve added support for some much-requested Merge Tags. See all GravityView Merge Tags.

Improved support for payment field Merge Tags

GravityView now adds support for transaction and pricing field Merge Tags:

  • {payment_date} The date the payment was received. Formatted using the same modifiers as {date_created}
  • {payment_status} The current payment status of the entry (ie “Processing”, “Pending”, “Active”, “Expired”, “Failed”, “Cancelled”, “Approved”, “Reversed”, “Refunded”, “Voided”)
  • {payment_method} The way the entry was paid for (ie “Credit Card”, “PayPal”, etc.)
  • {payment_amount} The payment amount, formatted as the currency (ie $75.25). Use {payment_amount:raw} for the un-formatted number (ie 75.25)
  • {currency} The currency with which the entry was submitted (ie “USD”, “EUR”)
  • {is_fulfilled} Whether the order has been fulfilled. Displays “Not Fulfilled” or “Fulfilled”
  • {transaction_id} the ID of the transaction returned by the payment gateway
  • {transaction_type} Indicates the transaction type of the entry/order. “Single Payment” or “Subscription”.

Feel free to use the Merge Tags throughout GravityView!

As always, you can download Version 1.16 from your GravityView Account page or update the plugin automatically on your WordPress website’s Plugins page.


Full changelog:

1.16 on January 14

  • Happy New Year! We have big things planned for GravityView in 2016, including a new View Builder. Stay tuned :-)
  • Added: Merge Tags. See all GravityView Merge Tags
    • {date_created} The date an entry was created. Read how to use it here.
    • {payment_date} The date the payment was received. Formatted using the same modifiers as {date_created}
    • {payment_status} The current payment status of the entry (ie “Processing”, “Pending”, “Active”, “Expired”, “Failed”, “Cancelled”, “Approved”, “Reversed”, “Refunded”, “Voided”)
    • {payment_method} The way the entry was paid for (ie “Credit Card”, “PayPal”, etc.)
    • {payment_amount} The payment amount, formatted as the currency (ie $75.25). Use {payment_amount:raw} for the un-formatted number (ie 75.25)
    • {currency} The currency with which the entry was submitted (ie “USD”, “EUR”)
    • {is_fulfilled} Whether the order has been fulfilled. Displays “Not Fulfilled” or “Fulfilled”
    • {transaction_id} the ID of the transaction returned by the payment gateway
    • {transaction_type} Indicates the transaction type of the entry/order. “Single Payment” or “Subscription”.
  • Fixed: Custom merge tags not being replaced properly by GravityView
  • Fixed: Connected form links were not visible in the Data Source metabox
  • Fixed: Inaccurate “Key missing” error shown when license key is invalid
  • Fixed: Search Bar could show “undefined” search fields when security key has expired. Now, a helpful message will appear.
  • Tweak: Only show Add View button to users who are able to publish Views
  • Tweak: Reduce the number of database calls by fetching forms differently
  • Tweak: Only show license key notices to users who have capability to edit settings, and only on GravityView pages
  • Tweak: Improved load time of Views screen in the admin
  • Tweak: Make sure entry belongs to correct form before displaying
  • Tweak: Removed need for one database call per displayed entry
  • Translations, thanks to:

Developer Notes:

  • New: Added get_content() method to some GravityView_Fields subclasses. We plan on moving this to the parent class soon. This allows us to not use /templates/fields/ files for every field type.
  • New: GVCommon::format_date() function formats entry and payment dates in more ways than GFCommon::format_date
  • New: gravityview_get_terms_choices() function generates array of categories ready to be added to Gravity Forms $choices array
  • New: GVCommon::has_product_field() method to check whether a form has product fields
  • New: Added add_filter( 'gform_is_encrypted_field', '__return_false' ); before fetching entries
  • Added: gv-container-{view id} CSS class to gv_container_class() function output. This will be added to View container <div>s
  • Added: $group parameter to GravityView_Fields::get_all() to get all fields in a specified group
  • Added: gravityview_field_entry_value_{field_type}_pre_link filter to modify field values before “Show As Link” setting is applied
  • Added: Second parameter $echo (boolean) to gv_container_class()
  • Added: Use the $is_sortable GravityView_Field variable to define whether a field is sortable. Overrides using the gravityview/sortable/field_blacklist filter.
  • Fixed: gv_container_class() didn’t return value
  • Fixed: Don’t add link to empty field value
  • Fixed: Strip extra whitespace in gravityview_sanitize_html_class()
  • Fixed: Don’t output widget structural HTML if there are no configured widgets
  • Fixed: Empty HTML <h4> label container output in List layout, even when “Show Label” was unchecked
  • Fixed: Fetching the current entry can improperly return an empty array when using GravityView_View->getCurrentEntry() in DataTables extension
  • Fixed: gravityview/sortable/formfield_{form}_{field_id} filter detailed here
  • Fixed: gravityview/sortable/field_blacklist filter docBlock fixed
  • Tweak: Set max-width: 50% for div.gv-list-view-content-image
  • Tweak: Moved gv_selected() to helper-functions.php from class-api.php