Solved

Contact Form 7 - WordPress

Posted on 2014-12-26
4
102 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 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Wordpress Pagination Function Not working ? 7 46
CSS Logo Problem. 2 33
Upload memory limit WordPress GoDaddy 8 55
auto play video on web page 4 40
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…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
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 insert an Iframe into WordPress. 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 : Open Page or Post…

749 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