Questions tagged [plugin-contact-form-7]

Please note: Support questions are off topic, support questions should be asked on the plugin's author support page. Contact Form 7 can manage multiple contact forms, plus you can customize the form and the mail contents flexibly with simple markup. The form supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering and so on.

Filter by
Sorted by
Tagged with
1
vote
0answers
11 views

Contact form 7: Prevent input html tag in text field

How to create validation in contact form 7 to prevent user input HTML tag like ... or , also to prevent scripts like $(dummy){}. I create validation to prevent URL and non Latin characters, how I ...
1
vote
0answers
33 views

How can I get my Calculate Contact Form 7 field to update with jQuery? [closed]

UPDATE: I am using Contact Form 7, and the Contact Form 7 Calculator plugin: https://wordpress.org/plugins/cost-calculator-contact-form-7/ I have a form with checkbox fields (member fees) that add ...
0
votes
0answers
15 views

Contact Form 7 - Replace database configured form template with a static file

TL;DR - Is there a way CF7 can pull it's form markup and tags from a static file, instead of the database? So I can maintain that file in version control. We have a very complex form running under ...
0
votes
0answers
22 views

Contact Form 7 Redirect to different URL on form submit depending upon dropdown select

I am using this code for dropdown menu in Contact Form 7: [select* menu-student id:menustudent include_blank "Student" "Professional"] I want if one select Student, then after ...
0
votes
0answers
24 views

Is there a way for users only saved in the contact form 7 database to view a wordpress private page?

Originally, I have it this way, every time a user signs up using the contact form 7 it will give the user a subscriber role allowing it to view the private page. The problem with this one is it keeps ...
0
votes
2answers
23 views

How to save unsuccessful form submissions locally in WordPress [closed]

I use Contact form 7 and I was wondering if there is a way to save the information filled out in the form even if the form does not get submitted. Few days ago there was something wrong with the email ...
1
vote
0answers
222 views

Contact Form 7 - Uncaught TypeError: wpcf7.initForm is not a function [closed]

I updated to WordPress 5.7 and Contact Form 7 v5.4. The new version is not compatible anymore with a js file (line 6 "wpcf7.initForm"), that a previous developer wrote for our theme. ...
0
votes
0answers
62 views

How to process uploaded images in new 5.4 version of Contact Form 7?

I am using Contact Form 7 (5.4) and CF7 Smart Grid Design Extension (4.10.0) in a submit form on my WordPress site to construct draft Custom Post Types. The original inspiration for this was this ...
0
votes
0answers
46 views

How to display custom post type taxonomy in Contact Form 7 text field

I am developing a travel website but I am going to create a simple custom post type since the website will not have a complex feature for now. In this regard, is there any way to fetch/display where ...
0
votes
0answers
17 views

Contact Form 7 dynamically adding attachments

I would like to add an attachment to the auto responder in Contact Form 7. Research implies that the way to go is to use the wpcf7_before_send_mail hook. add_action( 'wpcf7_before_send_mail', '...
1
vote
0answers
140 views

contact form 7 repeatable fields calculations [closed]

I had been trying to calculate cost and quantity using the following reply from (Calculate Repeater Meta Box Input Field Values and Display Total) RiddleMeThis and another reply by Filipeelia (https://...
0
votes
0answers
139 views

How do I add a 5 digit ZIP code validation to a Contact7 form?

I have an address form generated via Contact7. I need to validate there is a 5 digit zip code. According to the docs, I came up with this function and placed it in my functions.php file add_filter( '...
0
votes
0answers
22 views

Get email from signup form to generate a unique coupon to be displayed on thank you page

We use Constant Contact for our direct marketing and I set up a Contact Forms 7 signup form that only takes a user's email address. The goal is to capture the email address for a user that has signed ...
0
votes
1answer
493 views

How to add "on change" to a text input in contact form7?

I am converting a static theme to a wp-theme and I am working on forms with wpcf7 plugin. I am wondering how can I write this code with wpcf7 text tag. <input type="text" name="name&...
0
votes
0answers
144 views

pass a woocommerce product name to contact form7?

i want to pass the product name to contact form as a parametre there is a plugin do that but it open it in poppup and thats i don't want i want it to open a form this is the Plugin: WooCommerce Quote ...
1
vote
0answers
22 views

how to pass a woocommerce product name to contact form7 [closed]

i wanna when the user click on the button like this https://stupremat.tn/produit/distributeur-dhuile-en-fut-mobile-charg-de-batterie-f00263200/ it pass the name of product to a textbox in contact form ...
0
votes
1answer
157 views

How to redirect a Link to a new tab in contact form 7?

I was trying to redirect my contact form 7 to specific pdf link. But I m not sure how to open it in new tab can someone help me up with the same ? Below is my code... add_action( 'wp_footer', '...
0
votes
1answer
399 views

Conditional Fields for Contact Form 7 not working and displaying [/group] in output

I'm trying to get Conditional Fields for Contact Form 7 up and running in WordPress. I'm using Contact Form 7 version 5.1.3 and Contact Form 7 Conditional Fields version 1.9.14. I'm trying to follow ...
0
votes
1answer
90 views

Set id of cf7 in the data save function [closed]

My goal is to save the data sent by the cf7 module inside a table external to those created by wordpress I found this procedure: Create Custom table CREATE TABLE candidate( id INT NOT NULL ...
0
votes
1answer
43 views

CF7 Ajax isn't working when called inside WooCommerce "woocommerce_before_add_to_cart_button" hook [closed]

I am trying to place a CF7 Contact form on the product details page. I have used the WooCommerce hook woocommerce_before_add_to_cart_button for that. add_action( 'woocommerce_before_add_to_cart_button'...
0
votes
0answers
24 views

Is it possible to use different from email in contact form 7 with different domain?

https://prnt.sc/v7mwif I need to know how can we setup the different email on different host. my site name is tailwindimaging.com and I want to send email from xxx@tailwindimagery.com But I'm getting ...
0
votes
0answers
70 views

Add session data using add_filter()

I'm a little new to this and learning still. I have several forms that collect data from a user. This data must then be displayed in an extra field on the shipping page of Woocommerce. I use ...
0
votes
0answers
16 views

Contact Form 7 alert message bug in Admin

Contact form 7 keeps on showing this alert message even though no changes made. Any idea on how to fix this?
0
votes
2answers
595 views

Export Form Data to a CSV then send it as an attachment - contact form 7

I want to export the form data and send it as an attachment. In this case, can i rewrite the file (/uploads/2020/08/sample.csv) with the form data and send it as an attachment. right now, it is just a ...
0
votes
0answers
18 views

Form behaving differently on small screens vs desktop screen

I have an issue and I would be grateful for any ideas! I'm using a simple template bought at ThemeForest and I successfully added google maps autocomplete functionality for addresses in a field via a ...
0
votes
0answers
25 views

How to change current category to another in wordpress

I am new to PHP. Please help me to achieve the below scenario. I am trying to achieve this from the last 3 days. I've two categories in my WordPress dashboard named "Available (id:3)" and &...
0
votes
1answer
522 views

Wordpress Contact form 7 falat error while send an email

Fatal error: Uncaught Error: Call to a member function get_status() on null in /home/mywebsite/public_html/wp-content/plugins/contact-form-7/includes/contact-form.php:732 Stack trace: #0 /home/...
0
votes
1answer
139 views

Contact Form 7 Conditional redirect

As per this ticket on WordPress forum, I have added the below code to my contact form for conditional redirect. <script type="text/javascript"> inputs = event.detail.inputs; inputs....
1
vote
3answers
2k views

How to disable reCaptcha v3 except on Contact Form 7 pages?

Contact form 7 is loading reCaptcha v3 scripts on all the pages of the sites which is making the website slow. So I was using the script below which was working fine before two weeks from now, but now ...
0
votes
1answer
57 views

Filter multiple dynamic dropdown lists within one form using the Smart Grid-layout extension for Contact Form 7

I recently found solution for populating dropdown list with terms relative to the post. Everything works but I need to use this code on multiple dropdown lists within one form. My code looks something ...
0
votes
0answers
28 views

Use [from-email] from the contact form as sender's email

Is there any way we can use from email as senders email (e.g. [from-email]) which he enters in the form field? I'm currently using contact form 7 and looks like it won't support it at the moment. Is ...
0
votes
0answers
2k views

How to pass POST data from Contact Form 7 to another subpage after submitting the form

I would like to pass data from Contact Form 7 to another subpage after submitting the form. I would like to use the POST method for this I can get to this data with the wpcf7_before_send_mail filter ...
0
votes
2answers
770 views

Confirmation email Contact Form 7 [closed]

I use the Contact Form 7 plugin on my site, now I have a task to send a confirmation email after sending the data. But I can not find in the documentation how to do this without creating an extra ...
1
vote
0answers
30 views

Getting value from dymanic text variable into Contact Form 7

I have an inscription form and I'm using Contact Form 7, Conditional Fields plugin and Dynamic Text Extension. I want to show different prices according to the option selected and get the price for ...
2
votes
2answers
2k views

How to programmatically send additional notification emails in Contact form 7 [closed]

I have a list of emails I have fetched from the Wordpress database. I would like to programmatically send emails to these emails using the contact form 7. this is my code function ...
0
votes
0answers
25 views

Additional Headers: Contactform7

I am recently trying out Contactform7 for my website. I have added up the required fields. When it comes to saving the form, there is one error that I have no idea how to resolve. I've tried to read ...
0
votes
1answer
3k views

Adding custom attributes to input fields in Contact Form 7 tags

I want to open camera and save the picture taken. I don't want to upload saved picture. This can be done using the HTML5 - attribute: How can I add this capture attribute to my input tag in Contact ...
1
vote
0answers
119 views

How to escape the tailwindcss responsive syntax when using with contact form 7? [closed]

I am using the responsive syntax of tailwindcss for different screen size and when I am using it with Contact Form 7 (CF7) the syntax is getting ignored by CF7. [text* fullname id:fullname class:w-...
1
vote
1answer
604 views

How to programmatically customise the Contact Form7 notification email prior to sending? [closed]

I have post_meta that I do not want displayed or accessible in source when viewing a post, but I would like the post_meta to be included in email responses. How can I achieve this? I'm using ACF to ...
0
votes
0answers
2k views

How can I implement radio buttons with icons in Contact form 7?

I want to know how you can implement something like what is in the picture attached in Contact form 7, for now and seen what can be done with CSS 3 and HTML. But how can I implement it in the ...
0
votes
1answer
24 views

Send email to multiple addresses on Contact Form 7, but exclude personal details on all but one

I am building a site in Divi for a business that compares coach hire prices. The email should send the users details to both the client and the list of coach providers he works with, but with one ...
1
vote
0answers
448 views

Contact Fom 7 - how to add custom HTML inside span.wpcf7-form-control-wrap AND IMMEDIATELY AFTER input.wpcf7-form-control?

Contact Fom 7 - how to add custom HTML inside span.wpcf7-form-control-wrap AND IMMEDIATELY AFTER input.wpcf7-form-control ? Using the 'Query Monitor' plugin I found that the HOOK which I need to ...
1
vote
0answers
118 views

How can i add custom fields into the contact form 7 [closed]

I want to add additional fields into the contact us form. I already installed contact form 7 into my website,but now i want to add some more additional fields as per requirement. I also need to pull ...
0
votes
0answers
41 views

Contact Form 7 - save_posted_data with specific form

I found a lot of information to save cf7 data to custom posts along with taxonomies and fields using save_posted_data and this works fine for me. But there is a question left for me. Is it possible ...
0
votes
1answer
2k views

Contact Form 7 - Populating dropdown list with terms relative to the post

I found another post that had the code for dynamically populating a CF7 dropdown with the terms of a taxonomy, and I have it working, but I wanted the terms to not just be all within the taxonomy, but ...
0
votes
1answer
28 views

How to put a contact form inside the footer of all the articles and pages of a website? [closed]

I have a Contact Form 7 form inside a WP website. I want to insert this form at the end of every page and article of the website, near the copyright notice. I just know the short code of the form (it ...
0
votes
2answers
478 views

Hide button after form submit and save state to localstorage

I'm trying to disable a form button (contact form 7) after submitting and then save the disabled state to localstorage. This disables the button after submitting: jQuery(document).ready(function($) { ...
1
vote
0answers
1k views

Nextcloud integration with wordpress

We have a contact form on our website and we want to allow user to upload pdf file. We would like to uploaded file to be in turn uploaded to our nextcloud system. Could anyone please tell me if such ...
3
votes
4answers
10k views

How to get current post ID in Contact Form 7 wpcf7_before_send_mail hook action

I'm trying to handle the CF7 data before send and update the current post custom field using ACF function but I'm unable to get the current post ID the form is send from. I've also tried getting the ...
1
vote
1answer
56 views

Adding form field dynamically

I am preparing a WordPress web site for a non-profit in that I need to clone 3 input fields according to the user requirement. If they want, they can click an add button to increase input fields. ...

1
2 3 4 5
7