Gravity Wiz Weekly 197

Get a crash course on persistent order confirmations. Plus, prevent duplicate selections, hide empty summary columns, and wizardly highlights.

gravity wiz weekly

Greetings, wizards! 

I’m back this week after a short vacation visiting with my wife’s family in California. The weather in Orange County was amazing. 🌤️

Speaking of amazing things, did you know our new product line drops next week? It’s been a long road but I am so proud of Gravity Shop’s first product ever: GS Product Configurator. 😍

Keep an eye on your inbox. We’re working hard on the finishing touches!

Now onward, to this week’s wizardry. 🧙‍♂️ 

Wizardly Highlights

Gravity Forms OpenAI

Connect Gravity Forms with the unrivaled power and intelligence of AI.

This week, we unleashed a flurry of new features for Gravity Forms OpenAI to help you do more for with our robot overlords.

  1. First, if you find you need more context for your ultra beefy prompts, we’ve added support for the `gpt-3.5-turbo-16k` model which gives you up to 16k of context. That’s… a lot.
  2. Next, you can now reorder your OpenAI feeds to ensure that they process in your desired flow. This is useful when you feed the response from one OpenAI feed to another.
  3. Lastly, OpenAI feeds are now exported alongside the form when the form is exported, and imported when the form is imported. Life is good!

GP Notification Scheduler

Schedule Gravity Forms notifications to arrive when they matter most — onboarding campaigns, anniversary offers, and time-sensitive reminders!

If you’re using Notification Scheduler, you might want to prevent certain emails from being unsubscribed from your scheduled notifications. 

For example, one Gravity Perks customer wrote in about how they’d accidentally unsubscribed an internal email address that was expected to receive daily reminder emails to follow up on targeted leads. Oops! 

We added a new filter, gpns_unsubscribe_email, so that he could whitelist that email address. Just return `false` to prevent any email from being unsubscribed. 👍

GP Post Content Merge Tags

Use Gravity Forms merge tags directly in your WordPress post content. Use a single confirmation page for multiple forms plus better styled (and persistent) confirmations.

One of the sleeper features of our Post Content Merge Tags perk is the humble [eid] shortcode. Say what you will about shortcodes, those little suckers are versatile! 

When customers ask us how to use Gravity Forms merge tags in builders like Elementor and Beaver Builder, we’re always pleased to say, “We’ve got a shortcode for that!”

post content merge tags shortcode

This week, we updated the [eid] shortcode to support multi-input fields (like Name and Address fields). Oh, and check out the awesome crash course on using Post Content Merge Tags to create persistent order confirmations pages below!

Full changelog is available below. You’ll definitely want to peep the hefty integration additions we made for Populate Anything and Nested Forms this week. 🙌

Crash Course: Persistent Order Confirmations

Gravity Forms confirmation pages can be generic and permanent or personalized but temporary. Post Content Merge Tags gives you both personalization and permanence. This makes for more useful confirmations that can be linked from emails or bookmarked for later.

Let’s dive into how this can be configured in less than 5 minutes!

New Resources

GS Product Configurator | Populate Field with Order ID

I’m totally jumping the gun here but I couldn’t help but share our first snippet for the upcoming GS Product Configurator! 

While the order ID is captured in the entry meta, sometimes entry meta isn’t always accessible where you need it. Capturing data in a field value is often a simple solution to this limitation.

With this snippet, you can add the `wc_gf_order_id` class to your field’s Custom CSS Class setting and the value will be populated with the order ID after checkout. Thanks for the code, @rochekaid!

If you’re already on the alpha, you can use this snippet now. If not, let’s talk next week. 😉

Nested Forms | Hide Empty Summary Columns

So you have a couple Summary Fields that might have a value or might not. If no child entry has a value, the column for that Summary Field is a big pile of empty. BORING! But we’ve got the magic sauce with this snippet. 🪄

nested forms hide empty summary columns

Even Better | Prevent Duplicate Selections

Just what it says on the tin: prevent the same option from being selected in different Drop Down fields.

prevent duplicate selections on drop down fields gravity forms

This week, we fixed an issue where this would incorrectly enable options which had been disabled by GP Inventory due to exhausted inventory. We’re all about that suite compatibility!

Gravity Perks

GF OpenAI (1.0-beta-1.5)

  • Added gpt-3.5-turbo-16k as an available model for the Chat Completions endpoint.
  • Added OpenAI feeds to form export/import.
  • Added support for re-ordering feeds.

GP Address Autocomplete (v1.2.14)

  • Fixed issue where Address Autocomplete would sometimes not initialize for forms in modals that have not yet loaded.

GP Copy Cat (v1.4.65)

  • Updated require call to use plugin_dir_path().
  • Fixed an issue with Copy Cat not working for List fields.

GP eCommerce Fields (v1.2.20)

  • Fixed PHP 8 warnings.

GP Google Sheets (1.0-beta-2.6)

  • Fixed issue where populating values wouldn’t work in some situations when using GP Populate Anything 2.0 or newer.
  • Fixed issue where deleting entries using GravityView would not sync the change to Google Sheets even if “Update & Delete Rows” was checked.

GP Inventory (1.0-beta-3.24)

  • Fixed a PHP 8.1 error that could happen for some form configurations.

GP Nested Forms (v1.1.33)

  • Added new duplicate_children() method to GPNF_Entry.
  • Updated child entry datetime format to match parent entry datetime format when exporting entries.
  • Fixed issue where the Add/Edit modal would fail to open due to malformed JSON when using Weglot Translate.

GP Notification Scheduler (v1.3.4)

GP Page Transitions (v1.0.20)

  • Improved styling of Soft Validation errors if using the Theme Framework/Orbital.
  • Fixed issue where the submit spinner/loader would show if there was a Soft Validation error on the last page of a form using the Theme Framework/Orbital.
  • Fixed an issue where inputs/elements getting focused in pages could cause Swiper slides to clip off content at the top of the page.

GP Populate Anything (v2.0.9)

  • Added gppa_filter_operator_updated action that fires every time the “filter operator”
  • Added new gppa_field_property_set Javascript action hook.
  • Added new gp_populate_anything->clear_runtime_caches() method to primarily be used by other perks and integrations.
  • Added new GPPA_Object_Type::uses_php_filtering() method so Object Types that utilize PHP filter can tell Populate Anything to not reduce the query limit to 1 when populating values.
  • Improved Admin settings so that the Image Choice Template Row is hidden if “Use Image Choices” is off.
  • Fixed issue where importing/manipulating forms with WP-CLI containing restricted object types (e.g. Database) would not work.
  • Fixed regression with conditional logic due to a recent performance improvement. The performance improvement is now disabled by default and can be enabled using gppa_defer_conditional_logic.
  • Fixed issue where {pricing_fields} in Live Merge Tags wouldn’t update when product fields change.
  • Fixed a potential PHP error with the GF Entry Object Type when fields don’t exist.
  • Fixed issue where fields would sometimes incorrectly gain focus after GP Populate Anything updated field markup.

GP Post Content Merge Tags (v1.3.11)

  • Added support for outputting the value of array-based field values (e.g. Address and Name fields) when using the [eid] shortcode.

GP Read Only (v1.9.17)

  • Fixed issue where up/down arrows in read only number fields could show in certain scenarios depending on a user’s browser, the browser version, and WordPress theme.

GP Reload Form (v2.1.6)

  • Fixed issue where reloaded forms would sometimes not have the most recent choices from GP Populate Anything.

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.

"I unsubscribe from every newsletter I get except yours."

Join 25,000 readers and be the first to know of legendary discounts, new releases, free snippets, and other secret sorcery!