Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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!
0 votes
2 answers
1k 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($) { ...
0 votes
1 answer
765 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....
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 ...
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 ...
3 votes
2 answers
3k views

Contact Form 7 - Give each checkbox a class?

I'm using Contact Form 7 and have a group of checkboxes in my form. I want to give each checkbox a class. CF7 lets us add a class, but this only applies to the parent object. I want my custom class on ...
0 votes
1 answer
925 views

Contact Form 7: Drop-Down Menu with Read-Only Values?

Hi – is it possible to create a Contact 7 Form Drop-down Menu with ‘Read-Only’ values ? Syntax Example [select* trifold-template include_blank "Trifold #1" "Trifold #2" "Trifold #3"] Is it possible ...
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', '...
0 votes
1 answer
917 views

Contact form 7 ajax response true/false based on some condtion [closed]

I want to integrate custom logic after submit form. I want to store contact form data in the custom table, if data is stored then the response would be true otherwise false. I am using ...
0 votes
0 answers
193 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 ...
0 votes
1 answer
155 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 ...
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', '...
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&...
0 votes
0 answers
149 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 ...
0 votes
0 answers
78 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 ...
0 votes
0 answers
4k 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
0 answers
120 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 ...
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', ...
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 ...
0 votes
1 answer
388 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', '...
1 vote
2 answers
489 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 ...
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 ...
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" ...
0 votes
1 answer
7k views

how to enable ajax on submitting of contact form 7?

Actually i am try to show the short code of contact form 7 in the popup window . but the The form appears in the popup window when i submit the form page loads. i want to stop the page after ...
0 votes
3 answers
3k views

Issue with contact form 7 [closed]

A client of mine has installed contact form 7 for their contact forms but they're getting an error in the From field "(configuration error) Invalid mailbox syntax is used." The form looks like this: ...
4 votes
1 answer
24k views

How can I send to multiple Contact Form 7 recipients based on form input? [closed]

We are running a competition whereby we need to send emails out to email addresses that are entered on a form. I'm using Contact Form 7 to do this. I thought this would be straightforward but the ...
0 votes
2 answers
1k views

How to add a checkbox with categories of entries to the form Contact Form 7 Wordpress [closed]

How to display categories in the form along with subcategories that will expand only after clicking on the categories, Do you have any ideas for this?
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 ...
0 votes
2 answers
9k views

ACF + contact form 7

I'm using Contact Form 7 with an ACF field. In ACF, I created an email field : email. In my Contact Form 7, I have a field called destination-email: [email* destination-email id:exp-email default:...
1 vote
3 answers
3k views

Contact Form 7 to featured image

I am trying to retrieve a file uploaded in the front-end with contact form 7 and assign it to a featured image custom post type. Heres is my code so far : function form_to_post( $posted_data ) { ...
0 votes
0 answers
404 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 ...
0 votes
1 answer
86 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 ...
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 ...
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 ...
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 ...
0 votes
0 answers
601 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
3k views

Show button once Contact form 7 is submitted

I would appreciate any help. I have set a contact form up and want to show a button to download a file once the form is submitted. This is showing all the time and should be hidden until the form is ...
2 votes
5 answers
15k views

Contact Form 7 from adding paragraph and break tags to HTML emails [closed]

I'm trying to stop Contact From 7 from adding paragraph and break tags to HTML emails but can't figure it out. About 4 blank paragraph tags are added at the beginning of the email and two at the end. ...
0 votes
1 answer
522 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 ...
18 votes
2 answers
112k views

Contact form 7 select box different value-text than content-text in option [closed]

Does anyone know how I can set a different value in the select options in the Contact Form 7 plugin? Here is an example of the HTML I'd like it to generate: <select> <option value="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 &...
1 vote
2 answers
509 views

Copying uploaded images not working in wordpress

I am trying to copy an image uploaded using Contact Form 7 to the uploads directory but this only produces an empty jpeg file with 0644 permissions even though the dev directory and the uploads ...
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 ...
0 votes
1 answer
67 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 ...
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 ...
0 votes
1 answer
616 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
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 ...
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. ...
1 vote
1 answer
10k views

Contact form 7 Dynamic text - placeholder on GET field

I am using Contact form 7, with the Dynamic Text plugin. This works really nicely... What I'm doing is setting it up so that if the user clicks on a link on a product, it redirects them to an ...
1 vote
1 answer
2k 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 ...

1
2 3 4 5
7