contact-form-7

How can I remove the span wrapper in Contact Form 7?

青春壹個敷衍的年華 提交于 2020-01-12 06:27:08
问题 I use Contact Form 7 in my WordPress theme. It is currently returning span and input : <span class="wpcf7-form-control-wrap name"> <input type="text" name="name" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required form-control" id="name"> </span> But I need only input : <input type="text" name="name" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required form-control" id="name"> How can I remove the span wrapper? 回答1: I faced the same problem and finally ending by using

How to send 'no' in form when checkbox isn't checked in WordPress

百般思念 提交于 2020-01-06 15:20:56
问题 In contact form 7 plugin of WordPress, Is it possible to send custom message to mail based on checkbox value. In my form I have, subscribe to newsletter checkbox. When user checks the checkbox, subscribe to newsletter is coming as 'Yes' in mail. Now I want to send subscribe to newsletter as 'No' when user doesn't check the checkbox. Is it possible. I tried and am still searching for the answer in google but to no avail.Any help/suggestion is welcome. Thanks in advance. 回答1: Finally got the

Download File after submission in Contact Form 7 Wordpress

时光毁灭记忆、已成空白 提交于 2020-01-01 20:28:11
问题 I am trying to make one form which give functionality like when user enter name and email,then PDF file starts download automatically. And while i am applying this code in additional setting tab on submit button,it replay the error message like this. I am currently working in local machine, i know error is in contact form 7 mail tab,but don't know how to fix it? "There was an error trying to send your message. Please try again later." Here is my contact form 7 code: <label> Name [text* your

Download File after submission in Contact Form 7 Wordpress

你。 提交于 2020-01-01 20:28:06
问题 I am trying to make one form which give functionality like when user enter name and email,then PDF file starts download automatically. And while i am applying this code in additional setting tab on submit button,it replay the error message like this. I am currently working in local machine, i know error is in contact form 7 mail tab,but don't know how to fix it? "There was an error trying to send your message. Please try again later." Here is my contact form 7 code: <label> Name [text* your

Adding Google Conversion code to WordPress Contact Form 7

妖精的绣舞 提交于 2019-12-30 12:16:14
问题 I found a tutorial for adding Google Conversion code to WordPress Contact Form 7 plugin which can be found here. Currently I've added <script type="text/javascript"> $(".wpcf7-form").submit(function(){ var google_conversion_id = "12345678910"; var google_conversion_label = "xxxxxxxxxxx"; var image = new Image(1,1); image.src = "http://www.googleadservices.com/pagead/conversion/"+google_conversion_id+"/?label="+google_conversion_label+"&script=0"; }); </script> to my footer, but it doesn't

Contact Form 7: Set default date to today

ぐ巨炮叔叔 提交于 2019-12-30 06:56:12
问题 How do I set the default date to today, using Contact Form 7? The minimum date can be set easily with min:today . When you click on a datepicker you can choose dates from today. But the default date (before picking) is not today's date. The date is displayed like 2016/mm/dd or whatever date format. 回答1: Yes, I added a script <script> jQuery(function ($) { var now = new Date(); var day = ("0" + now.getDate()).slice(-2); var month = ("0" + (now.getMonth() + 1)).slice(-2); var today = now

JavaScript in Contact Form 7

不想你离开。 提交于 2019-12-25 09:01:23
问题 I need a help with Contact Form 7 and additional settings. I would like to add this script: <script type="text/javascript" src="https://example.js?mid=0000&refer=example_name"></script> to on_sent_ok: I tried to do it in many ways but it is not working. 回答1: on_sent_ok expects a string of executable JS code. So to load and execute an external script, you can use jQuery's getScript, like so: on_sent_ok: '$.getScript("https://example.js?mid=0000&refer=example_name‌​")' 来源: https://stackoverflow

How to add additional settings on error in Contact form 7?

﹥>﹥吖頭↗ 提交于 2019-12-25 06:26:01
问题 I already know the function 'on_sent_ok' to add jQuery actions when the form is submitted with success. However I want to display a modal window alerting the user when there are submitting erros. There's some function like the one above, but to be called on errors? 回答1: In version 3.3 new jQuery custom event triggers were introduced: New: Introduce 5 new jQuery custom event triggers (invalid.wpcf7, spam.wpcf7, mailsent.wpcf7, mailfailed.wpcf7, submit.wpcf7). See: http://contactform7.com/2012

How to make custom form-tag in contact form 7 required

雨燕双飞 提交于 2019-12-25 05:04:46
问题 So i make custom form-tag in contact form 7! It is a drop down with list of my courses and now I want to make it required because that is the main thing in whole form. So can someone give me a tip how to do that? When I do the [myCustomField* course-name class:custom-field] It does not working with * So if someone can help it will be great! 回答1: You can use [select*] to output a required drop-down menu. [select* course-name include_blank "English" "Math"] Check https://contactform7.com

Contact Form 7 can't send attachment more than 6MB to email

允我心安 提交于 2019-12-25 02:24:18
问题 Attachment is uploaded into server. But, unable to send attachment using contact form to email if file is larger than 6MB. Ajax is loading. I encounter the following errors: EMAIL DELIVERY ERROR: the plugin WP Mail SMTP v1.4.1 logged this error during the last time it tried to send an email: Mailer: Gmail Request Entity Too Large Request Entity Too Large Error 413 Here is my setting: I have increased the following in php.ini: upload_max_filesize = 512M post_max_size=512M max_execution_time