Solved

Contact Form 7 - WordPress

Posted on 2014-12-26
4
100 Views
Last Modified: 2014-12-29
date field type does not work in Contact Form 7.

Can I put custom php code  into the apparent html like code in the form definition?
0
Comment
Question by:Richard Korts
  • 2
  • 2
4 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40519232
date field type does not work in Contact Form 7.

What does "not work" mean?  No datepicker?  If so, this (again) most likely due to a javascript problem/conflict between themes and plugins.

Can I put custom php code  into the apparent html like code in the form definition?

I don't follow you.  Where are you proposing to enter code?
0
 

Author Comment

by:Richard Korts
ID: 40519272
No, I didn't try datepicker for the reasons you said before.

I just tried to use the form field type "date". According to Contact Form 7 that works; it does nothing, just works like a text field. So I'm giving up on that.

See attached. I mean where is says Option 1, etc.
Image1.jpg
0
 

Author Comment

by:Richard Korts
ID: 40519276
As a further extension, If I could just do my own custom php, I would have had this done days ago.

Can I build my own Contact Form using 100% Custom php?
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 40519407
I just tried to use the form field type "date". According to Contact Form 7 that works;

A date field is a text field, it's just that the form should validate the entry as date before sending it on.  So I'm still not sure what "doesn't work" means in this case.

Can I build my own Contact Form using 100% Custom php?

Sure.  Build it as a plugin, shortcode, or custom page template:

http://codex.wordpress.org/Page_Templates#Custom_Page_Template
http://codex.wordpress.org/Shortcode_API
http://codex.wordpress.org/Writing_a_Plugin

Custom page template might be the easiest for a simple form.  Just copy your theme's existing page.php to page-something.php and add your form code to that file.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Like there are many different versions of Wordpress, there are also a handful of related side projects WordPress users should be familiar with.   All of these projects are open source and GPL licensed, which means there are few restrictions to us…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question