Solved

Contact Form 7 - WordPress

Posted on 2014-12-26
4
94 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

WordPress can be pretty daunting, especially for a beginner, so I thought it might be a good idea to write an article to show how easy it is to get started in WordPress and to design a custom theme.  The first step is to check with your hosting comp…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now