Solved

Contact Form 7 - WordPress

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Is this doable WordPress, or should we search for another solution? 2 64
Add space before submit button 3 48
Sick of fighting with footer widgets 5 61
Img not displaying 11 22
What's this? As a volunteer Page Editor for Experts-Exchange.com, I have noticed that many authors also have blogs, and pull articles from their blogs to post at Experts-Exchange. I appreciate each author sharing their blog content with our site …
Do you think that WordPress is just for blogs?  Think again!  WordPress is really a fantastic all around platform that you can use to develop websites on.  Integrated into its basic functionality is the ability to create pages using your choice of a…
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…
This video teaches users how to migrate an existing Wordpress website to a new domain.

863 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

27 Experts available now in Live!

Get 1:1 Help Now