Anyone have a way to do this?
Thanks
Is my question clear enough? I would like to be able to use the form on my site, but would like to be able to enforce the formats I mentioned above.
Thank you
You can use [tel tel-xxx] and [date date-xxx] form-tags newly introduced in Contact Form 7 3.4. They only provide moderate format validation by default, but you can customize it by adding your own code in your theme’s functions.php which uses filter hooks Contact Form 7 provides.
Is there a document or website with these form-tags describing their use and correct formatting?
Thank you
Sorry I’m writing now. It’s really easy, you have tag generator.
OK, if I choose to Generate Tag, then for example Text Field and the fields id (optional), class (optional), size (optional), maxlength (optional), Default value (optional).
You mentioned “They only provide moderate format validation by default, but you can customize it by adding your own code …”
Do you have an example of what I would add to the fields I mentioned above, and also the various syntax used to the “format validation” you mentioned?
I am new to WordPress & especially your plugin, so that is the reason for the “newbie” questions. If you have some references I can use, I am willing to read & learn.
Thank you
Here are examples:
[tel tel-123 id:testidtel class:testclass 12/20 "000-000-0000"]
[date date-123 class:testclass id:testiddate min:2013-04-15 max:2013-04-29 step:2 "2013-04-22"]
The current version only accepts numbers, ‘-‘ and ‘+’ characters in tel input validation. Next update will additionally accept space, ‘(‘ and ‘)’.
Thank you. I’ll watch for the next version. Will that have instructions on your website for doing things like the example you provided above?
Ok, I figured out what happened. I was not using version 3.4. I am now seeing the telephone and date fields.
Where do I add the information you provided in your examples, just in the fields that were generated in the Tag Generator?:
[tel tel-123 id:testidtel class:testclass 12/20 “000-000-0000”]
[date date-123 class:testclass id:testiddate min:2013-04-15 max:2013-04-29 step:2 “2013-04-22”]
Also you mentioned “you can customize it by adding your own code in your theme’s functions.php which uses filter hooks Contact Form 7 provides.”
What exactly can I add in the functions.php?
Thank you in advance for the help.