Overview Formidable provides a built-in method for setting a default value on fields by passing a query string parameter. To do this, simply pass the name of the parameter and its value in the query string, like this: /page-name/?color=blue If you want to capture the value of “blue” as the default value in a field, [Read More…]
A simple shortcode to count entries for a specific field. Usage 1: [count_entries field_id=’153′ field_value=’Class’] Usage 2: [count_entries field_key=’sdlsK’ field_value=’Class’] View the code on Gist.
Simple code snippet to populate a Formidable form dropdown with filtered entries from SQL query. Uses complex LEFT JOINs. View the code on Gist.
The Question Is there a way to create a new taxonomy for a custom post type from the value of a text field when using Pro’s Create Post form action? Formidable Slack Community Member The Answer Yes! In fact, Formidable has a knowledge base example on how to Create a new WordPress Category. The example [Read More…]
Create Post Form Action When you upgrade to any Formidable Pro license, you’ll receive a new form action for creating WordPress posts from a form entry. It’s a delightful addition to your tool set that provides great opportunities for enhancing your site and user experience. As you learn to use the new form action, you [Read More…]
The Challenge Is it possible to make fields required for specific user roles using the frm_validate_field_entry hook? Formidable Slack Community Snippet Yes, it’s possible by using the WordPress wp_get_current_user() function. Here’s the snippet that shows how. View the code on Gist.
This is a quick snippet to increment a row counter for a repeater field. The Slack Formidable Community member that asked how to do this is using the frm_repeat_start_rows filter to pre-load 10 rows in the repeaters. The first field in the repeater is a counter. View the code on Gist. To use, change the [Read More…]
The Problem How can I style the background color of individual radio buttons to highlight the one that’s selected? —Formidable Slack Community member The Approach There are a several ways for doing this and Formidable Forms makes it easy to implement any method you choose. This tutorial walks you through two solutions. The first is [Read More…]