Problem One request we receive frequently is: How can I include a link on a page to return to the previous page? Solution If you view any of the codex detail pages, at the top of the page, you’ll see one of the following links: Return to Actions List or: Return to Previous Page or: [Read More…]
Disable Formidable’s Inbox
To disable the display of inbox messages, use this code snippet to keep the inbox empty: View the code on Gist. To completely remove the inbox from the Formidable menu, use this snippet: View the code on Gist.
Passing an Option in Query String and Setting Select Value
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…]
Count Entries Shortcode
Introduction When we built this site, we envisioned the code snippet area to be a reference resource for experienced Formidable developers. However, as this site grows, we are making adjustments for a broader audience. Keep asking your questions. We appreciate it! If you need help with a code snippet that you found on this site, [Read More…]
Populate Dropdown from SQL Query
Simple code snippet to populate a Formidable form dropdown with filtered entries from SQL query. Uses complex LEFT JOINs. View the code on Gist.
Add New Create Post Action Taxonomy
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…]
Understanding Pro’s Create Post Action Taxonomies
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…]
Conditionally Require Fields by User Role
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.