There are many reasons why you may want to disable a form’s submit button to prevent entries from being sent from the browser. For example, perhaps you’ve created a simple calculator form or a demo form for a specific Formidable feature as we do throughout this site. The solution we use is to modify the [Read More…]
Tips & Tricks
How to Change the Datefield’s Calendar Start Day
Question This question comes from a poster in the Formidable Slack Community: How can I change the inline datepicker field to start on Saturday by default? Solution You cannot change the datepicker to start on a different day of the week by default through the Formidable build screen. However, Formidable uses the ubiquitous jQuery UI [Read More…]
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…]
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.
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…]
Default a Toggle Field to Active
If you examine the generated HTML for a Formidable toggle field, you’d see that a toggle field is simply a single value checkbox in disguise. Normally, the toggle field defaults to its inactive state. To default a toggle field to its active state, simply set the fields default value to the same value as the [Read More…]
Writing Transportable Code: Keys vs. IDs
When you drag and drop a field onto a form, two pieces of data to identify the field in code are created. The first, the field’s ID is created by MySQL using an auto increment field. This is a standard methodology used throughout WordPress. WordPress creates an ID for every single data element added to [Read More…]