Overview A question posed in the Formidable Slack community regards the display of a Star Rating field that was added to a Custom Post Type (CPT). The poster wants to understand why the CPT doesn’t display the star icons, specifically as it relates to this source code as rendered in the CPT when shown in [Read More…]
Blog
Change Input Background Color Based on Other Field Value
Question: How do I change the background of a field based on another field’s value? Example, if Num field = 1 then change the other field’s background to red? Michael Thomas, Formidable slack community member Answer: This is best handled by jQuery so you can see the result in real time. Essentially what you need [Read More…]
Form Transients
This Mastermind tip is contributed by Rob Levine (@RobL) from the Formidable Slack Community. Thank you Rob! Rob was experiencing a caching issue when programmatically adding an option to a checkbox. In the Slack community’s General channel, he posted: …I’m using a filter to update the Formidable fields table (frm_fields). I’m manually adding an option [Read More…]
Return to Previous Page
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
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.
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.