Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using the Contact Form 7 Calendar "plugin plugin", but I can't figure out how to make the date field required. The syntax is [datetimepicker your-label], and in the parent plugin (Contact Form 7), you would just put an asterisk in, like [datetimepicker* your-label] but this doesn't work with the calendar widget... Of course, I could always style it in CSS to appear as if its required, but I kinda need the validation there. I've looked in the plugin's documentation, but this isn't covered, and the author is not responding on the WP Support Forums.

Has anyone used the Calendar add-on and been able to make the date field required? Anything I can do to tweak the javascript or whatever is used for validation -- I'm assuming its javascript (I'm sure js is very easy but I've never managed to find the time to learn it)? Or the php (I'm much more comfortable in php), but without breaking on plugin updates...

share|improve this question

closed as off-topic by birgire, Johannes Pille, TheDeadMedic, Pieter Goosen, ialocin Sep 5 at 11:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic." – birgire, Johannes Pille, TheDeadMedic, Pieter Goosen, ialocin
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 1 down vote accepted

Apparently the answer is to read the installation instructions properly the first time round. The syntax within a contact 7 form is: [cf7cal inputname] or [cf7cal* inputname]

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.