Question

How does one go about building a page in wordpress that contains a contact form full of custom fields, boxes, inputs, etc. completely determined by the author of the site. It seems odd that wordpress currently lacks this feature, but knowing the wordpress community, it's unlikely that we must do without.

Was it helpful?

Solution

Contact Form 7 is one of the most popular plugins to add a contact form to a WP blog. It supports multiple contact forms and you can add/remove fields as needed. Additional services such as reCAPTCHA and Akismet can be added. I use this on most of my blogs to power the contact features.

OTHER TIPS

One of the most common plugins used to do this is Contact Form 7. There are also numerous other free plugins to add this functionality, as well as paid plugins such as Gravity Forms.

Consider using Gravity Forms. It's commercial but only $39 per site and it's one of the best $39 I've ever spent for WordPress development.

If you are looking to do a highly custom form, and want complete control over what happens, you can also create a new template for the page, and your form on that template would post back to itself. At the top of the template you could do something like this:

<?php
if($_POST)
{
     // do something
}
?>

Not the most elegant, but it works.

Add me to the Gravity Forms supporters list. Of course it does a lot more than just contact forms. You should definitely check out the feature list and decide if it is worth your $39 dollars. It was a no-brainer for me and I bought the unlimited site developer license. The time that it saves me makes it worth it.

I've been pleased with the (free) Deko Boko forms plugin. Flexible, easy to modify and recaptcha is integrated.

Secure Form Mailer Plugin For Wordpress

For years and years I have been using the form plugin from dagon design: http://www.dagondesign.com/articles/secure-form-mailer-plugin-for-wordpress/ for free! (so let me do my happy user giveback thing:)

This plugin has a wide range of features including:

  • Support for multiple instances
  • An easy to use dynamic form generation system (any number of fields, in any order)
  • multiple recipients
  • multiple file attachments
  • optional auto reply feature
  • an image verification system
  • numerous security features (including protection against email header injection)
  • a message template system
  • multiple languages
  • and too many other things to list.

This plugin was designed to be easy to use, while still being extremely flexible. If you just want a simple contact form, you can set one up with just a few clicks.

For those of you who need something a bit more advanced, you can completely customize the plugin to fit your needs – whether it is 5 fields or 500. A non-WordPress version is also available. ReCaptcha support has also been added, as well as support for storing the data in a delimited file.

It has served me well for years.

See the different- for only a form in one page it is easy and fast (no filter-hook or other) to write a template for a page in WP, for more flexibilty and functions us a plugin. A ready solution or a starter there you can find here: https://github.com/bueltge/WP-Contact-Form-Template

Plus one for gravity forms as I have found it to be much easier for my clients to use. Is easier to provide theme support for (ie Easier to customize via CSS) and has fewer conflicts with other plugins

There is as well the Grunion Contact Form (Wordpress Plugin) which is quite simple to use. Just add a

[contact-form]

Shortcode inside a page or post. Job done. Can be configured as well.

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top