What are you looking for?
- Popular Searches:
- Populate Anything
- Google Sheets
- Product Configurator
- WooCommerce
Post
Gravity Wiz Weekly 232
Post
Gravity Wiz Weekly 229
Post
Gravity Wiz Weekly 227
Snippet
Ignore Empty Search Value
When filtering Populate Anything results using the "Advanced Select Search Value" option, by default, it will not show any results until the user has entered a search value. This snippet will ignore the search value filter if no search value has been entered, displaying the first 50 results and allowing the user to infinitely scroll through the all results.
Snippet
Set Blocklist by Field Value
Video Instructions: https://www.loom.com/share/95b7192628774a3ebd0a0f47a4acd50a
Use this snippet to create a blocklist editor form. We recommend using Populate Anything to populate WordPress' current blocklist into the field. The user can then edit the values and submit the form. This snippet will handle updating the blocklist option in the database.
Snippet
gplc-gppa-integration.php
Provides the ability to set limits on dynamic choices populated by Populate Anything.
Snippet
Disable Multi-Page Navigation Links via CSS
This CSS disables Mulit-page Naviation's page links whenever GP Populate Anything disables the form navigation.
Snippet
Attach Child Entry by Field
Attach child entries to a parent entry when the child form is submitted outside a Nested Form field. The attachment happens by specifying a field on the child form that will contain the parent entry ID to which the form should be attached. Tip: Populate Anything can be used to populate this field with existing parent entries. The designated field will only appear when the child form is accessed outside a Nested Form field.
Snippet
Refresh Markup in Nested Form B After Submission in Nested Form A
Refresh the markup in Nested Form B after a child entry has been submitted in Nested Form field A. This is useful when combined with Populate Anything to allow entries submitted in one Nested Form field to be populated as choices in another.
Snippet
Add A Custom Choice Template
Choice templates allow you to map data to different properties of your Gravity Forms choices.
In this example, we demonstrate how to create a new template for a theoretical "image" choice property. With this in place, you would be able to select a value in the Populate Anything choices UI that is mapped to the "image" property for each choice.
Snippet
Custom Database
By default, Populate Anything will only show the database that the current WordPress installation is on.
The following snippet allows registering additional an additional database with custom credentials.
You can add multiple databases by adjusting the class names and adding additional
gp_populate_anything()->register_object_type()
calls.
Snippet
Disable GFML gform_pre_render callback
Bypass processing forms with Gravity Forms Multilingual when pulling results for Populate Anything via AJAX.
The reason for this is due to the 'gform_pre_render' method in Gravity_Forms_Multilingual using a runtime cache to cache all forms which interferes with Populate Anything.
Snippet
Force Rehydration on Edit
Use this snippet to force fields to be rehydrated via Populate Anything when they are rendered in the Entry Blocks edit form.
Note: This snippet requires Populate Anything 2.0+.
Snippet
Ignore Empty Save & Continue Values
By default, Populate Anything will honor empty values saved for a field via Save & Continue. Use this snippet if you would like to ignore empty Save & Continue values and use GPPA-populated values.
Snippet
Include Static Choices
Include static choices alongside your dynamic choices populated by Populate Anything.