contact-form-7

Upload progress bar on contact form 7

隐身守侯 提交于 2019-12-13 01:11:10
问题 I have a friend which has this website and has clients uploading big files to his contact form all the time. As the form does not say the percentage of upload, often people just go away cause they think the website is blocked. This is the contact form url http://www.smalllinks.com/68G7 The only way to avoid this would be to build a contact form that has an upload progress bar. As he i programmed the website in Wordpress and i have always used contact form 7 (which is hooked to another plugin

How to implement Google Adwords conversion code in Contact Form 7 Wordpress

拟墨画扇 提交于 2019-12-12 18:23:46
问题 I want to integrate Google conversion Adwords code in Contact form 7 Plugin without redirecting to a ‘Thank You’ page.How to implement Google Adwords conversion code in Contact form 7 Plugin.Could someone help me.I would not prefer redirecting to another page. 回答1: I found solution for implementing Google conversion Adwords code in Contact form 7. Step 1 Edit the CF7 form you want to track conversions for and paste the Google Adwords Conversion code from google at the end of your form. Step 2

Contact Form 7 content explode by regular expressions

眉间皱痕 提交于 2019-12-12 17:38:16
问题 I have a contents of 'Contact Form 7' that I got from WP post. It looks something like this: Your Name (required) [text* your-name] Your Email (required) [email* your-email] Subject [text your-subject] Your Message [textarea your-message] [submit "Send"] I need to explode this content to an array by regular expressions. At the end of the process it should look like this: $arr = array ( 'text* your-name', 'email* your-email', 'text your-subject', 'textarea your-message', 'submit "Send"', )

Use image as radio button on Contact Form 7

匆匆过客 提交于 2019-12-12 10:19:53
问题 I'm trying to create an option for people to select an image in a WP CF7 form. As they will only be able to select one option, it seems to me that using a radio button function is the best way to go. I found an example of a code on https://wpquestions.com/Need_Image_as_a_Radio_Button_in_Contact_Form_7/19618#answer_16362 but adding the code does a) not create a tag in the admin section, and b) only returns the full shortcode on the page, instead of returning the desired images. I did find this

Custom validation is not working in Contact Form 7 in ver 4.1.1

爷,独闯天下 提交于 2019-12-12 09:44:12
问题 I have to make a form with custom validation field in contact form 7. It is not working with latest version (4.1.1) of Contact Form 7 but working in older version. I have created a field for getting coupon code from the form. I want to validate the entry if the coupon is started from "HIP". My code is given below: add_filter( 'wpcf7_validate_text', 'your_validation_filter_func', 999, 2 ); add_filter( 'wpcf7_validate_text*', 'your_validation_filter_func', 999, 2 ); function your_validation

Tracking in Universal Analytics - Contact form 7

为君一笑 提交于 2019-12-12 02:59:35
问题 I have contact form 7 on a site. With classic analytics I had this in additional settings.. on_sent_ok: "_gaq.push(['_trackPageview', '/goals/enquiry-sent']);" And it tracked fine as a destination goal. As soon as I updated to Universal analytics (including the demographics tracking), I then updated the code to: on_sent_ok: "ga('send', 'event', 'category', 'action', 'label');" and also tried on_sent_ok: "ga('send', 'pageview', '/your/url');" and I just can't get either of them to track. Any

Contact form 7 - Google Analytics Tracking

我只是一个虾纸丫 提交于 2019-12-11 17:54:34
问题 I`m trying to track submitted contact forms in google analytics with contact form 7. I tried the following: I placed the code on_sent_ok: "ga('send', 'event', 'Contact Form', 'submit');" in the additional settings. Does not work. This method is supported until the end of 2017. The new method is "DOM events", so... ...I tried it with DOM events. I placed the code <script> document.addEventListener( 'wpcf7mailsent', function( event ) { ga('send', 'event', 'Contact Form', 'submit'); }, false );

Image as a checkbox option in Contact Form 7

主宰稳场 提交于 2019-12-11 17:29:02
问题 I wanted to use the image as an option to check in contact form 7. I searched and found the way to do that with radio button. I made the changes in the code, and it does work as a checkbox, but it is only sending one value when submitting the form, not the multiple values. This is the code I am using. Please tell me what needs to be changed. function add_shortcode_imagecheckbox() { wpcf7_add_shortcode( 'imagecheckbox', 'imagecheckbox_handler', true ); } add_action( 'wpcf7_init', 'add

Dynamicly populate Contact form 7 input fields with current user info when logged in in Wordpress website

非 Y 不嫁゛ 提交于 2019-12-11 02:18:49
问题 I've been trying to figure out how to populate input fields in contact forms on my Wordpress website. I've tried using a plugin called Contact Form 7 dynamic text extension, and tried a pretty simple IF statement with PHP. But i just can't seem to get this to work. With the plugin, i can only get half of the arguments to work in the shortcode, even then the form doesn't properly validate. Using PHP as a placeholder="" outputs the code instead of the contents of the variable. for example "

Contact form 7 telephone number verification

跟風遠走 提交于 2019-12-10 18:48:19
问题 I am trying to use the built in verification method for contact form 7 to verify a telephone number. Contact form 7 markup: <p>[number* your-telephone min:1000000000 max:9999999999 placeholder "Telephone number"] </p> <p>[submit "submit"]</p> So, what I am trying to do here is restrict phone number using the min and max properties of input type of number. But the problem here is that if I enter a telephone number say: 0402356584 then it is less than the min value but is still a phone number.