30

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.

4
  • Everyone seems to use Contact Form 7. It's good, but I've also built custom forms for this purpose.
    – artlung
    Commented Aug 11, 2010 at 20:53
  • Is the [wordpress-3] tag appropriate here? The question doesn't refer to WP3 specific functionality and could equally apply to earlier versions of WordPress.
    – nobody
    Commented Aug 11, 2010 at 20:53
  • I use Enhanced WP Contact Form and it works for me, even though it says it only works up until WordPress 2.6 it still works fine for me using WordpPress 3 Commented Aug 11, 2010 at 21:44
  • dynamicwp-contact-form comes with floating button on the webpage .
    – Name-AK
    Commented Sep 12, 2010 at 5:19

10 Answers 10

23

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.

3
  • I use Contact Form 7 on all my sites. It also has several extension points (actions and filters) with which you can add your own custom functionality.
    – avesse
    Commented Aug 11, 2010 at 21:32
  • I've been very happy with Contact Form 7; One thing to check, if you use tools to migrate your database and replace URL's; make sure your generated e-mails are still correct. CF7 stores the line breaks as /r/n and some scripts read it wrong and re-write it to the database differently. Commented Aug 12, 2010 at 18:51
  • Contact Form 7 requires Javascript to be activated to work.
    – hakre
    Commented May 1, 2011 at 21:04
5

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.

5

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.

11
  • 1
    After looking through lots of other contact form plugins Gravity forms is the only one that I'd let my clients use. Nothing else even compares to how easy and nice it is to use. Commented Aug 12, 2010 at 3:14
  • 1
    Soooo glad that I checked this site before going with Contact 7 forms. Gravity forms is seriously unbelievable. Thanks @MikeSchinkel, you saved me hours worth of work today.
    – jessegavin
    Commented Oct 5, 2010 at 20:56
  • @jessegavin - Glad I could be of service. Commented Oct 7, 2010 at 2:05
  • @MikeSchinkel: Is the Gravity Forms Plugin not GPL'ed?
    – hakre
    Commented May 1, 2011 at 21:10
  • @hakre - I believe it is licensed GPL, why? But it's not available directly from the vendor by download without paying. Are you suggesting that because it is GPL that people should look to get it for free rather than pay the reasonable amount to help fund its continued development and support? Commented May 2, 2011 at 18:11
4

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.

2

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.

1

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

2
  • captcha is very bad and not the best usability
    – bueltge
    Commented Aug 13, 2010 at 18:48
  • If I mention that captcha is not mandatory will you remove the -1?
    – Chris_K
    Commented Aug 16, 2010 at 17:37
1

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.

1

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

0

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

1
  • 2
    If you want to "plus one," use the up arrow on the answer that already exists and/or add a comment explaining WHY you "plus one".
    – Doug
    Commented Aug 12, 2010 at 17:01
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.