?
Solved

Contact Form 7 - WordPress

Posted on 2014-12-26
4
Medium Priority
?
107 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

WordPress has made it easy to create scalable sites based on their powerful CMS, but as great as WordPress is, there are some SEO issues that haven’t been addressed out of the box.  Fortunately these problems can be solved with a few plugins.  The f…
If you are looking for plug-ins to add functions to your WordPress small business web site, take some time to read though this comprehensive list.  These are all the plugins I use for my customers WordPress web sites, as well as my own.  Be sure to …
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

770 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