Skip to main content

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
200 views

How to translate strings from [file] upload tag in Contact Form 7?

I am using Contact Form 7 plugin to create a simple contact form with file upload option. For file upload CF7 inserts [file] tag. This tag renders a button with Choose File string and a string No file ...
Asetofchara's user avatar
0 votes
1 answer
160 views

Wordpress - Contact Form 7 - Get uploaded file issue

I'm aiming to submit my Contact Form 7 data in Wordpress to an API (all fields are fine, but adding the file attachment breaks my submit - error 500), which includes an attachment. I can make it work ...
Pbalazs89's user avatar
  • 115
0 votes
0 answers
150 views

Submit CF7 form programmatically with WP-Cron?

We need to check daily if our CF7 form is working properly (form submission data arrives to support's email). So i need a way to programmatically submit the form on frontend. I tried with WP-Cron but ...
Ion T's user avatar
  • 45
0 votes
0 answers
79 views

How can I create a drawable image for a contact form

I'm trying to create a new patient form and Im not sure the best way to create a section with an image of a body so that they can draw on it to indicate where on the body they hurt. It has been done ...
vab04581's user avatar
0 votes
0 answers
128 views

Contact Form 7 - Message with a URL will always fail

When submitting a message from Contact Form 7 at https://www.datanumen.com/contact/, if I include a URL in the form, then the submission will always fail, see below: I have tried to disable all ...
alancc's user avatar
  • 41
0 votes
1 answer
389 views

contact form 7 form not working in admin panel

I am using cf7 form in wordpress admin panel: On front end its working fine but I need in admin panel. I have tried below code in functions.php but it did not work: add_filter( 'wpcf7_load_js', '...
Ravinder singh's user avatar
0 votes
2 answers
1k views

Adding filter to the Contact Form 7 response

I have a Contact Form 7 that adds a new post when submitted. In the response text that displays after submitted, I would like to include a link to that post. add_action( 'wpcf7_before_send_mail', ...
Hasut92's user avatar
0 votes
1 answer
220 views

CF7 Remove Comma from 'select' 'radio' and 'checkbox' outouts

I have a few 'select' 'radio' and 'checkbox' options on my CF7 form where the user can choose multiple options .. however on the output there is a comma between each item but I want to remove this ...
Tom Kidd's user avatar
1 vote
2 answers
492 views

CF7 Populate Text Field Based On Checkbox Checked

I need to be be able to auto populate a text field with "one-hidden" when a customer checks a checkbox but so far examples I've found online do not seem to work or im putting them in the ...
Tom Kidd's user avatar
0 votes
2 answers
3k views

Contact Form 7 - how to disable spinner the right way

The Contact Form 7 plugin includes a spinner that appears when the form is being submitted. How can I stop this spinner from showing up? I don't want to use the methods of hiding it with "hidden&...
Aprilia Parrino's user avatar
1 vote
0 answers
268 views

how to add contact form 7 shortcode in javascript variable [closed]

In Contact Form 7 I have created a dropdown with 3 options under it "Dallas" "Houston" "Austin" . I wrote this js code so that if I select Dallas then "Houston" ...
MD. RABIUL ISLAM's user avatar
0 votes
1 answer
313 views

plugin doesn't retrieve data from database

I wrote a code for a plugin which suppose to modify the WordPress dashboard to display a cog icon for each post in a column named "Optimize". I added an action to the icon that triggers the ...
Shima Masaeli's user avatar
0 votes
1 answer
1k views

Contact Form 7 - Display Dropdown, Send Different Data

Is it possible to have a dropdown on Contact Form 7 with a dropdown list of First names only, but for the data to send the first and last name? For example, the dropdown says, "John", but ...
CF7Ques's user avatar
0 votes
0 answers
405 views

Contact form with dynamic dropdown and filter

A client wants to create a contact form for a moto parts store that allows users to choose their moto make-model-year. They want this information to provide better assistance after the contact. They ...
franjapaez's user avatar
0 votes
1 answer
88 views

No attachments on contact form 7

I've been using the contact form for several years now, for my current project I'm using the latest WordPress with the latest version of contact form 7, but for some reason, I'm not receiving ...
Roshan Deshapriya's user avatar
0 votes
2 answers
5k 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 ...
RDX023's user avatar
  • 11
0 votes
1 answer
2k 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', '...
Robert's user avatar
  • 11
0 votes
0 answers
67 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 ...
Aymen Eddaoudi's user avatar
1 vote
2 answers
3k 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 ...
DK Thakur's user avatar
  • 149
0 votes
0 answers
602 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() { ...
STEP IADM's user avatar
0 votes
2 answers
1k views

Contact form 7 - automatic email delay [closed]

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!
lcsdv's user avatar
  • 1
0 votes
1 answer
61 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 &...
ThreeFifty's user avatar
0 votes
1 answer
524 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 ...
Anne's user avatar
  • 1
0 votes
1 answer
70 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 ...
Smith's user avatar
  • 1
0 votes
1 answer
1k 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 ...
Jade's user avatar
  • 3
0 votes
1 answer
2k 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 ...
KiriqN's user avatar
  • 11
1 vote
0 answers
1k 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 ...
ByteMyPixel's user avatar
0 votes
1 answer
120 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 ...
mayersdesign's user avatar
0 votes
1 answer
625 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 ...
Natzin's user avatar
  • 1
1 vote
0 answers
1k 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. ...
IWOS's user avatar
  • 11
0 votes
0 answers
578 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 ...
Cat's user avatar
  • 1
1 vote
0 answers
543 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://...
komalsoft's user avatar
1 vote
0 answers
2k 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( '...
david lee's user avatar
  • 131
0 votes
1 answer
3k 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&...
Zaki's user avatar
  • 1
0 votes
0 answers
679 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 ...
Mahjoubi houssem's user avatar
1 vote
0 answers
248 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 ...
Mahjoubi houssem's user avatar
1 vote
1 answer
1k 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', '...
Mohammed Hussain Merchant's user avatar
0 votes
1 answer
2k 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 ...
Vincent's user avatar
  • 101
0 votes
1 answer
519 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 ...
user14633289's user avatar
0 votes
1 answer
98 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'...
Rahul K's user avatar
  • 13
0 votes
0 answers
491 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 [email protected] But I'm getting ...
Ravi's user avatar
  • 247
0 votes
2 answers
2k 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 ...
Yucaree's user avatar
0 votes
0 answers
23 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 ...
david's user avatar
  • 101
0 votes
0 answers
135 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 &...
sajeergraphix's user avatar
0 votes
1 answer
766 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....
Jituu's user avatar
  • 31
3 votes
4 answers
9k 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 ...
Ujjawal Poonia's user avatar
0 votes
1 answer
236 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 ...
bld23232's user avatar
0 votes
0 answers
254 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 ...
Bibek KC's user avatar
0 votes
0 answers
3k 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 ...
kanlukasz's user avatar
  • 534
0 votes
2 answers
2k 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 ...
Bavarius's user avatar
  • 101

1
2 3 4 5
7