Publishing Experience, WordPress Plugins, WP API

Custom Contact Forms Redux

In 2009-2010 Custom Contact Forms was one of the first WordPress plugins I wrote. The purpose of the plugin was to solve a simple problem: easy contact form building on the web.

As I was building the plugin, WordPress 3.0 had not yet been released, and therefore custom post types and other useful API’s did not yet exist. I wrote the plugin the best I could using custom database tables (ouch!). The plugin become decently popular. I continued development on the plugin for the next year or so. In the process I learned a lot about writing code for WordPress. Also in the process I landed a job at 10up where I learned (and continue to learn) more than I ever thought I would.

Years later in 2015, here I am an experienced WordPress developer and an avid open source contributor. I have used most of the popular WordPress form plugins: Gravity Forms, Ninja Forms, Formidable, etc. Using all these plugins, despite lots of great functionality, have left me with the nagging feeling that something is missing.

That something was the WordPress experience. With the release of the media manager in WordPress 3.5, we have all grown accustomed to a high quality media management experience through smooth JavaScript interactions. Form management should be no different; they should be built within a media manager-esque modal, no page reloads should be necessary, and we should get live previews of what we are building. Simple task right? 8 months later… 🙂

Detailed installation and usage instructions are on Github. Download the plugin from WordPress.org

For Users

Within the post edit screen, a simple “Add Form” button next to the “Add Media” button brings up the form manager modal:

insert-form

Within the form management modal, you can also see your existing forms and edit them if you choose:

View all your forms within the form management modal for easy access.

After inserting a form into a post, you see a nice preview within TinyMCE:

Form previews even show within TinyMCE.

While the meat of the plugin lies within the form manager, single form views exist. Within a single form view you can see a live form preview:

Live previews of your forms are generated on the fly. No more guess and test.

Also within the single form view lives the form submissions table. You can easily paginate through results and add/remove columns as you please:

Easily scroll through form submissions in tabular format. You can configure columns you would like to see to ensure an uncluttered view.

For Developers

Most of the plugin is written in JavaScript. Custom Backbone views, models, and collections are written to emulate and display forms and fields. The plugin is extremely extensible. You can easily hook in to modify existing fields and views as well as create your own.

The plugin includes the new JSON REST API for WordPress. Right now, it is included as a Composer dependency for various reasons until the API is added to WordPress core.

Note: While the plugin is suitable for production environments, version 6 is still somewhat in beta. Please let me know on Github if you experience any problems.

Standard

17 thoughts on “Custom Contact Forms Redux

  1. Pingback: Custom Contact Forms Redux | The WordPress C(h)ronicle

  2. This looks awesome 🙂 to be honest i have never used your plugin but i am intrigued by it. I love the media manager experience and if it was up to me, i’d use it everywhere! I’m curious about your wp-api integration, i haven’t looked at the code yet, how are you using the wp-api?

  3. Matt says:

    I have a custom made page builder plugin and I’m considering adding a page element for CCF. Can you add a filter to remove / hide the TinyMCE integration so I have programmatically disable the functionality without modifying the plugin directly / relying on the user to do it? It doesn’t make sense in my scenario and I’d rather not support that part.

  4. I love the look and feel of this plugin. Great job! The previous version was a little hard to get used to but it seemed to have a bit more functionality. I was wondering if you will reintroduce the ability to upload files in the form soon? The forms I have made on my site are really useless without that feature. (oh and thanks for fixing the glitch with pressing “ENTER” while filling out the form)

  5. Hi Taylor, I have a client that is running 5.1.0.4. With the awesome work you have put in on 6, we are looking into upgrading. I notice that 6 breaks backwards compatibility and that we will need to update the database when we upgrade. Is the upgrade automatic or is it something we will need to do manually? Is there anything in particular we should look out for in the upgrade? The new UI looks great and we can’t wait to try it out. Thanks!

  6. Marita says:

    I like your plugin so I clicked on a link that said ‘donate here,’ but I don’t see a donate button. Where can I send you some dough?

  7. Clement says:

    hi there taylor!
    very good job on this new update, very much more user-driven and good looking.
    However, i am still looking for the export option that was available in the general settings of the previous version. Could you tell me where to find this please?
    thxs

  8. Hello, i really like your form. And it works great, mostly. In the paragraph text on my site the font color is white. In the single line text the font color is black. The white color is invisible. How do i proceed to fix this issue. The site is in dutch.

  9. Gas says:

    Hi Taylor,
    Great plugin and super straightforward to use. Is there any way to autofill fields like name/email etc from the user that is already logged in? For example i’m using woocommerce and it’d be great if a customer is logged in and uses a form to have some fields already filled with basic data.
    Thanks for sharing this great plugin.

Leave a Reply to Taylor Lovett Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s