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
0 votes
0 answers
5 views

Very slow ajax request from Contact Form 7

I need to figure out with weird issue on my project. There are two version of the web-site one of them is production and other one is stage version. Both projects are identical. The problem was seen ...
0 votes
0 answers
25 views

How can I save a user's Contact Form 7 inputs as separate columns in a custom WordPress table?

I'm new to WordPress, PHP, and the whole lot. I've done some googling and found the code below, but it's not saving the submission as I need. I have a form that captures: first-name, last-name, ...
  • 1
0 votes
2 answers
32 views

prevent contact form 7 from submission on certain condition

I have a contact form 7 form and in that I have an acceptance checkbox for terms and condition and I want to make that checkbox required and add some class when checkbox is not checked and prevent ...
  • 11
0 votes
0 answers
14 views

How to display contact form 7 form in vanilla js without jquery in frontend

Backend jquery Frontend Vanilla JS Contact form 7 Wordpress I have a task to display a cf7 form on the frontend using vanilla javascript . From what I've read, this can be done using admin_ajax.php. ...
0 votes
0 answers
10 views

Create shortcode for each form field in contact form 7

In Short: I want to access form submission shortcode to make it displayed on a different page with custom text. Hi, I am trying to create a rental property directory listing website. I have used ...
0 votes
0 answers
7 views

Contact form 7 add automatic =0A character in place of break

I am sending sending mail by submitting a contact form to a CRM email address, but CRM not able to parse mail because its add =0A in place of break / new line What receive on mail: First Name: Shiv=...
0 votes
0 answers
9 views

Use Mail-Tag from Contac Form 7 in a script

Hello i use Contact form 7 to send an email with json format inside the body we need to replace every " inside the mailtag. We came up this this solution but we cant pass [Presentazione] that is ...
0 votes
0 answers
43 views

Authenticate rest API except for contact-form-7

I have a contact-form plugin that requires access to the rest api. My original settings were to disallow access to rest api except for administrators and editors. However, to allow the contact-form to ...
0 votes
1 answer
51 views

Contact Form 7 Wordpress, checking a few fields, if empty then invalid

Could someone help me to solve the problem. I would like the system work like bellow. If both fields are empty = invalid. If any of the fields is completed = valid add_filter('wpcf7_validate_text', '...
  • 1
0 votes
0 answers
21 views

Contact form 7 send product PDF after submit

We are trying to display a cf7 form on woocommerce product pages, where users can submit the form and receive a pdf file related to the product (either as an email file attachment, as a link in the ...
0 votes
0 answers
16 views

Contact form 7 radio button default:get

I have three radio buttons and each should be selected according to which link the user click on some previous page [radio saletype use_label_element default:get "Commission sale" "...
1 vote
2 answers
236 views

Contact form 7 Hide response messages after 5 seconds

I just installed this plugin and I must say it does everything I need. I am using a custom made popup div with a CF7 inside it. I need to hide response messages (error, success message) after 5 ...
  • 149
0 votes
0 answers
21 views

How to access WC()->cart in CF7 hook wpcf7_special_mail_tags

I have created a page that allows users to request a quote based on Cart contents, in the wpcf7 hook wpcf7_special_mail_tags() I want to get the cart contents and return the output (cart items), but ...
0 votes
0 answers
37 views

Contact Form 7 is not redirecting the "Thank-You" page with the removal of CSS and JS of plugins

I was working on on-site speed optimization. I removed the css and js files of the Contact Form 7 plugin. Through the following code in function.php function rjs_lwp_contactform_css_js() { ...
0 votes
3 answers
186 views

Contact form 7 - automatic email delay

I would like to ask if there is a way to automatically delay emails after completion? I want these emails to arrive 1-2 hours later. Is there a snippet of code for this? Thank you!
  • 1
0 votes
0 answers
12 views

Contact7 Check Boxes line breaks when submitted

I am working on a wordpress Contact7 Form with a checkbox selection. I am wondering if there is a way when these checkboxes are submitted via email that the format is changed so instead of coming up ...
0 votes
1 answer
17 views

Conditional Logic on CF7 dropdown options

I need to create a form with two dropdowns ("Translate from" and "Translate to"), many options (Languages) inside on those dropdowns. If someone selects any language other than &...
0 votes
1 answer
25 views

Email address used by website but I do not know where

I build a website for a client. This client then filled the website with content. I created 20 contact forms, using the contactform 7 and WP Mail SMTP Pro plugin. The website has now more than 100 ...
  • 1
0 votes
0 answers
9 views

The dropdown menu for contact 7 forms is not responsively with mobile device

The contact 7 form drop-down menu works great on a desktop but is non responsive on a mobile device. the same question was asked before and the answer did not address the question.
0 votes
0 answers
127 views

Trying to update repeater field (ACF) dynamically with data from Contact Forms 7

I'm trying to feed a repeater field with the values submitted via a registration form (I'm using Contact Forms 7). When debugging the array of values passed to the "add_row" function, ...
  • 738
0 votes
1 answer
19 views

Change FROM name in mail inbox when sending email through Contact Form 7

I am using Contact Form 7 and in FROM field, I am writing [your-name] <your-email> I have a few queries: It throws error Invalid Mailbox Syntax is used. Screenshot here: https://prnt.sc/23keni5 ...
  • 1
0 votes
0 answers
44 views

Add custom HTML data to Contact Form 7 mail?

I have a contact form with 3 pages, first two are HTML and the last page is Contact Form. I want to include data from 1-2 pages to contact form mail. How would I go about doing it? Let's say I have a '...
0 votes
0 answers
23 views

Contact Form 7: conditional logic in e-mail

I have a contact form where a user can select among multiple choices, e.g. single room or double room. A single room costs 50$, a double room 100$. After the form is submitted, I would like to receive ...
0 votes
0 answers
43 views

edit user input data contact form 7

I have created a form that posts user input to an API, in my function I have multiple Posted Data entries that take the value from my user input. In my $body variable I have set it to receive the API ...
  • 11
0 votes
0 answers
24 views

Receive no any emails from contact from 7 wordpress

I set my email in to field but I m not getting any email from this anyone help me out
0 votes
0 answers
13 views

create a new section in divi after sending a contact form

I have a contact form in divi that displays in a popup from a button on my page. I would like to have a new section displayed on my page when I click on the submit button on my form. if it's not ...
0 votes
1 answer
443 views

Add Line Break/Remove Commas for Checkbox options sent via Email from Contact Form 7 [closed]

Currently when someone submits a contact form that contains multiple checkbox options, when it comes through via email it’s all on the same line split by commas. Is it possible to change the Contact ...
  • 3
0 votes
1 answer
199 views

Push Contact form 7 variable to front end after submission

I have a contact form 7 form that's sending information to an API. I want to display the API response on the front end. I record the user information, then post it using wp_remote_post, with my ...
  • 11
1 vote
0 answers
402 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
1 answer
26 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
1 answer
123 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 ...
  • 1
1 vote
0 answers
466 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. ...
  • 11
0 votes
0 answers
278 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 ...
  • 1
1 vote
0 answers
307 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
0 answers
676 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( '...
  • 121
0 votes
1 answer
1k 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&...
  • 1
0 votes
0 answers
373 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
0 answers
57 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
1 answer
570 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
1 answer
738 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 ...
  • 101
0 votes
1 answer
186 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
1 answer
72 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'...
  • 13
0 votes
0 answers
35 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 ...
  • 227
0 votes
2 answers
1k 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
0 answers
20 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 ...
  • 101
0 votes
0 answers
41 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
1 answer
308 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....
  • 31
2 votes
4 answers
4k 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
1 answer
131 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
0 answers
40 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 ...

1
2 3 4 5
7