Three new versions of Formidable (v2.0.23-2.0.25) were released in March. Here are some of the most noteworthy changes, including client-side validation, specialized field types & more. Keep in mind that the change log is always kept up to date.
Specialized field types
We've added two new field types to make your form-building faster: address field and credit card field.
While we were at it, we simplified and cleaned up the code for adding new fields. This includes field-specific hooks like:
With one click, you've now got an address field with two lines, city/province, state, zip/postal code, and country. If you select a U.S. address, your state field will become a dropdown, and your zip code will get specific formatting validation.
Credit card field
The credit card field is the second specialized field type we have added this month. We don't recommend collecting credit card information without an add-on to handle it securely. As a result, you won't see the credit card field listed with your other fields. We are working on an Authorize.net add-on, as well as a Stripe add-on. (Spoiler alert: we are planning on releasing the Stripe add-on this month.) Both of these plugins utilize the new credit card field.
If you're a developer and have another way of processing payments, you can enable the credit card field by adding this line to your code:
add_filter( 'frm_include_credit_card', '__return_true' );
More flexible reCaptcha
You can now do more with your reCaptcha fields: include two on the same page, and set your dark or light theme. Unfortunately, we found that a lot of plugins that include reCaptcha simply don't do it right, and load the script on every page whether it's needed or not. This prevents all of your Formidable reCaptchas from displaying on the page. As a result, you will need to enable to option to allow multiple reCaptchas on a page. This setting is included on the Formidable -> Global settings page.
We've also been finding that many servers aren't up-to-date with allowing communication with SSL sites. On servers with this problem, the reCaptcha was never able to verify and all submissions were accepted, spam or not. If your server is among this group, when you submit your form the reCaptcha will now include an error message. Be sure to contact your web host to update your server if you see these messages.
Trigger actions when a draft is saved
Have you been wanting to send out email notifications when an entry is saved as a draft? Wish granted! You'll now find drafts included in the action triggering options for your email form actions. Enjoy!