This Mastermind tip is contributed by Rob Levine (@RobL) from the Formidable Slack Community. Thank you Rob! Problem I am using e2PDF to create a PDF of a submitted Formidable Form. The difference for me is that I both want to save it to the server and do it without the user knowing (or caring) [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.
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.
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.
Increment Repeater Field Row Counter
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…]
Capitalize First Letter of Form Field
Here’s a handy little snippet to help you capitalize the first letter of a form’s text field. [Read More…]