Gravity Wiz Weekly 199
Advanced Select 1.0 arrives. Plus, new features for Product Configurator, hidden Gravity Forms gems, and powerful Advanced Merge Tags tricks.
Greetings, wizards!
WordCamp US is next week and Clay and I will be there. If you’re attending, go see what we look like on our About page and then make sure to come say hi when you see us at the event. We’ll be easy to spot because I still have a fierce beard and Clay is quite tall. 😂
No weekly next week while I’m immersed in the wonderful WordPress community but we’ve packed so much in this one you probably won’t be ready for another weekly next week anyways. 😄
Let’s dig in!
Advanced Select 1.0 Arrives 🛩️
Advanced Select gives you the most beautiful, searchable, extensible Drop Down and Multi Select fields ever. Plus, they’re capable of dynamically populating massive datasets.
Wizards are great listeners, and we’ve implemented tons of your feedback to bring you a fine-tuned 1.0 with a handful of new features too! Here are a few highlights:
- Modernize Address field selects (e.g. State, Province, Country).
- Remove button added for Multi Select fields – enable for Drop Downs by filter.
- Tight integration with Gravity Forms’ Theme Framework – looks so good in Orbital.
And, as you know, any 1.0 from Gravity Wiz means that the plugin has been well tested – by humans, wizards, and robots. In fact, those robots automatically test our plugins with every change so we (you and us) can all sleep well at night.
Advanced Select 1.0 is ready for you!
GS Product Configurator: New Feature Alert 🚨
Customizable WooCommerce products powered by Gravity Forms, deeply integrated with both ecosystems — it just works.
You can now map a Number field on your form as the WooCommerce quantity for the given product.
Why would you want to do this? Incorporating the desired quantity directly in the product form enables you to create a more logical flow.
Imagine you’re selling a course and would like the customer to register multiple participants with the same submission. By capturing the number of participants first, you could use a perk like Auto List Field to add a List field row for each participant.
Without being able to use an inline field for the product quantity, the customer would complete the form before they had a chance to specify the desired number of participants. That’s just bad UX.
Bonus benefits: Better control of styling, layout, and more functional integrations with other Gravity Forms/Perks functionality. 💯
Want to explore other cool ways to use Product Configurator?
AlbumBlitz: Searching Through the World’s Music with Advanced Select
AlbumBlitz is the passion project of Elle Dulaney, who is on a mission to catalog the world’s music.
With the help of her husband Dan, the two have archived over 40,000 albums with tracklists, release information, streaming links, and more.
Once they got here, they ran into a problem: how can they make it all searchable, and accessible for everyone else?
Elle is blind, and as the couple told us, they were not able to find anything that had the accessibility tools they required after testing a list of solutions.
By chance, (Gravity Wiz Weekly, actually 😉) they stumbled on Advanced Select — a plugin that not only matched their accessibility requirements, but allows them to create instant, filterable searches of over 40,000 releases populated in real time with the help of Populate Anything 2.0. It also does so much more!
Of course, we got a behind-the-scenes look.
New Resources
Gravity Forms Gem | Show Two Decimals in Calculation Results
There are so many little gems buried in the Gravity Forms docs. We simplified this one a bit and added it to the Snippet Library so we won’t have to look so hard for it next time. 😅
So, why would you want to always show two decimals in calculation results? Currency calculations are the obvious goto here and Gravity Forms already supports this by enabling “Currency” in the field’s Number Format setting.
But showing two decimals is valuable in any scenario where you want to convey the precision to which the number was calculated even when one or more of the trailing digits are zeros. Think mortgage rates `7.00%`, scientific measurements `2.50mg`, and weights `175.00 lbs`.
Advanced Save & Continue | Show Spinner During Auto-save
Advanced Save & Continue supports automatically saving your users progress and restoring it when they return to the form.
This week, we wrote a snippet that will show a spinner whenever the auto-save is processed so users can feel confident that their latest changes were captured.
Advanced Merge Tags | Display Data from the Source Post
TL;DR: Fetch and display data from the post from which an entry was submitted.
The new {source_post} merge tag was inspired from a Pro customer’s awesome use case. She was using Notification Scheduler to schedule a series of event reminders. The same form was used on multiple event pages and she wanted a way to dynamically update the contents of each scheduled notification based on the event from which the form was submitted for each entry.
There are a lot of ways to achieve this manually – using conditional logic to create multiple different notifications or a single notification with conditional shortcodes to control the content – but this Pro customer dreamt of a better way.
With this little snippet, she was able to create a generic template for her scheduled notifications and then use the {source_post} merge tag to pull the event title `{source_post:post_title}`, start time `{source_post:start_datetime}`, and other details directly from the event post from which the attendee submitted the form.
Best part? If event details change, she just updates the post and those details are automatically reflected when the notification is processed. 💯
Product Updates
Gravity Perks (v2.3.3)
- Added German translations. Credit: Florian Rinnhofer of sportunion.at
- Fixed an issue where Gravity Perks’ licensing would replace variables in the updater URLs for GS Product Configurator and prevent updates from downloading successfully.
GS Product Configurator (1.0-beta-1.3)
- Added support for mapping a field to the WooCommerce quantity.
- Fixed an issue where saving an order in the admin could cause the formatted metadata of order items with attached forms to become saved to the order item. This could result in the metadata showing twice and the new set to become outdated if the entry is updated.
GP Advanced Phone Field (v1.0.17)
- Fixed a styling issue with Conversational Forms.
GP Advanced Save and Continue (v1.0.9)
- Added
gpasc_auto_save_started
andgpasc_auto_save_finished
actions to allow doing something when the auto save has started and when it has finished.
GP Advanced Select (v1.0)
- Added dynamic display of multiselect field options in the GPADVS field preview UI.
- Added live UI preview of GPADVS-enabled fields in form editor.
- Added ability to filter the minimum search query for selects and the ability to optionally load all results upon field focus.
- Added
gpadvs_js_init_args
filter to allow for configuring options passed to form JS script. - Added “remove button” to each item in a multi-select for easy removal.
- Added support for Advanced Select on select inputs in Address Fields.
- Improved compatibility with Gravity Forms Theme Framework.
- Improved GPPA filter so that if “Advanced Select Search Value” is chosen, the
contains
operator is automatically used. - Improved Multi Select field settings so that the accessibility warning is hidden if GPADVS is enabled.
- Fixed issue where old GPPA search results would remain in a Tom Select dropdown when starting a new query after selecting an item.
- Fixed potential error when adding the “virtual_scroll” Tom Select plugin.
GP Easy Passthrough (v1.9.22)
- Fixed an issue where session values would be preferred over Easy Passthrough tokens passed using
ep_token
.
GP Email Users (v2.0.4)
- Added back missing
gpeu_forms
filter hook.
GP Entry Blocks (1.0-alpha-2.26)
- Added new
gpeb_edit_entry
PHP action hook. - Added new
gpeb_entry_not_found_message
PHP filter hook.
GP Inventory (1.0-beta-3.25)
- Fixed issue where using
|
in choice values of non-pricing fields could result in incorrect inventory calculations.
GP Notification Scheduler (v1.3.5)
- Fixed an issue where entries spammed would still continue to receive their notifications.
GP Populate Anything (v2.0.10)
- Fixed a regression with the
{count}
merge tag. - Removed
GPPA_Object_Type_Database::$_primary_key_cache
to allow greater control of returned results via related filters.