Jainil Nagar
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Two Fielnd valdationHello @mattiamomy,
Your code is correct and it should work properly.
Is the form submitted without showing error?
Also, Is there any JS error showing in the console window of the browser?
Forum: Plugins
In reply to: [Contact Form 7] Two Fielnd valdationHello @mattiamomy,
Please add your form and code.
Hello @bloohair,
Are the field group conditions match on the new site?
On the old site, the field group condition might have a template, post type or specific page added.
Forum: Plugins
In reply to: [Contact Form 7] Repeating form validation messagesHello @hollistergj,
You can use the custom validation mentioned in the document.
Forum: Plugins
In reply to: [Contact Form 7] How to change width % of contact form 7 Boxes?Hello @rishabhtestwebsite,
Add the following CSS:
.wpcf7 textarea, .wpcf7 select, .wpcf7 input[type="file"] { width: 75%; }
Forum: Plugins
In reply to: [Contact Form 7] How to change Contact form 7 border color?Hello @rishabhtestwebsite,
Just change your additional CSS with below:
input[type="text"], input[type="email"], input[type="tel"], textarea, select, input[type="file"] { border-color: #000000 !important; }
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF?)] Dependent select boxes with ACFHello @ioclaudio,
You can check this article which has a similar “County-Area” functionality implementation described.
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF?)] Where to add Google Maps API?Hello @jojoma1,
You need to add the following code in your theme’s functions.php file which was mentioned in the documentation:
// Method 1: Filter. function my_acf_google_map_api( $api ){ $api['key'] = 'xxx'; return $api; } add_filter('acf/fields/google_map/api', 'my_acf_google_map_api'); // Method 2: Setting. function my_acf_init() { acf_update_setting('google_api_key', 'xxx'); } add_action('acf/init', 'my_acf_init');
Forum: Plugins
In reply to: [Contact Form 7] How to send url in emailHello @drevovoni,
If you just want the URL from where the form is submitted in the mail then you can use the special mail tag: [_url] mentioned here.
If you want the Product information like title, Id or URL in the hidden field of the form which you can use in the mail then you can use Contact Form 7 Dynamic Text Extension.
Ex:
Product Name:
[dynamichidden product-name "CF7_get_post_var key='title'"]
Product URL:
[dynamichidden product-url "CF7_URL"]
Forum: Plugins
In reply to: [Contact Form 7] Multiple emails in conditional emailHello @spuri123,
Add this code in your theme’s functions.php file.
Forum: Plugins
In reply to: [Contact Form 7] Multiple emails in conditional emailHello @spuri123,
You can use the wpcf7_before_send_mail hook.
add_action('wpcf7_before_send_mail','dynamic_addheaders'); function dynamic_addheaders( $WPCF7_ContactForm ) { // Check contact form id. if ( [YOUR-CONTACT-FORMID] == $WPCF7_ContactForm->id() ) { $currentformInstance = WPCF7_ContactForm::get_current(); $contactformsubmition = WPCF7_Submission::get_instance(); if ( $contactformsubmition ) { $mail = $currentformInstance->prop('mail'); $cc_email = array(); if( $_POST['menu-820'] == 'Distillery Enquiry' ) { $cc_email = array( '[email protected]', '[email protected]' ); } elseif ( $_POST['menu-820'] == 'Product Enquiry' ) { $cc_email = array( '[email protected]' ); } elseif ( $_POST['menu-820'] == 'Trade Enquiry' ) { $cc_email = array( '[email protected]' ); } if( !empty($cc_email) ) { // saparate all emails by comma. $cclist = implode(', ',$cc_email); if(!empty($cclist)){ $mail['additional_headers'] = "Cc: $cclist"; } } // Save the email body $currentformInstance->set_properties(array( "mail" => $mail )); // return current cf7 instance return $currentformInstance; } } }
Hello @wfdave ,
Any update on this?
Hello @wfdave,
I have tried uninstalling, and reinstalling Wordfence but the issue is still persisted.
Hello @fstat,
Thanks for the replay. Glad to know that the team is working on this.
Forum: Plugins
In reply to: [Contact Form 7] Javascript error in Contact form 7?Looks like you are using LiteSpeed Cache plugin for the caching.
Have you activated ‘Load Js Deferred’ in the optimization section of the caching plugin? This may cause recaptcha JS to run after the page is loaded.