[radio field1 use_label_element default:2 "Sí|Ja" "No|Nein"]
I was expecting definig a condition like this would work:show [group_field1] if [field1] equals "Ja"
But its only working like this:show [group_field1] if [field1] equals "Sí"
This is really inconvenient if I have to cover all languages.
]]>Hi,
I have used your plugin and must say it’s been fantastic.
I have a question.
I have set a group with an empty text field and I’m trying to show the default alert and redirect to a specific website when that field is NOT EMPTY.
Is that possible?
[group group-387]<label>[hidden text]</label>[/group]
]]>I was using a dropdown for the user to select from 2 options. The clear_on_hide
works for all form groups that are hidden. However, I now need to remove an option. I can disable the second option via JS, but I would rather remove that option altogether and use a text field to indicate there is only that one option available, and there’s no need for a dropdown when there are no choices. So, I tried replacing the dropdown with [text example readonly "example option"]
Unfortunately, when CF7 sends emails, it is including the label for that field as well as the text of the field in all hidden repeating groups, despite “Exclude lines with blank mail-tags from output” being checked.
In order for a dropdown to clear_on_hide
, a first_as_label
such as “- Select -” must be used, and it looks silly to do it this way when there’s only a single option available in the dropdown (and it looks ridiculous to use a dropdown to begin with when there are no choices). This is why I want to just use a text field.
I can’t simply delete the text field from the CF7 mail output, because the user needs to be shown this [now forced] option in their email for every section that they actually fill out (non-hidden). Also, removal of the second option is temporary; it will be removed/replaced at specific intervals, so the less editing I need to do, the better.
Am I missing something or is clear_on_hide
a readonly text field and then refill the text field with the CF7 tag value upon showing the group not supported with your plugin (yet)? If not, then consider this a feature request.
My field boxes are sized, positioned and aligned with the Column Shortcodes plugin, so that all fields match and look right. Checkboxes or radios would adversely affect the aesthetics, for one thing, so I’m stuck with using dropdown or text field.
I have installed the plugin, but when i clik on activate message “Plugin activated” appears, but plugin is not active, and the click on “activate” is another time available.
]]>Hello, have the following code and don’t know why the second group is not showing when cklicking “three”
[checkbox MEMBERSHIP-DISCOUNT “YES”]
[group DISCOUNT-CONDITIONS clear_on_hide]
[checkbox DISCOUNT-CONDITIONS exclusive use_label_element “ONE” “TWO” “THREE”]
[group OTHER-REASON clear_on_hide]
[text DISCOUNT-OTHER-REASON placeholder "this is why"]
[/group]
[/group]
show [DISCOUNT-CONDITIONS] if [MEMBERSHIP-DISCOUNT] equals “YES”
show [OTHER-REASON] if [DISCOUNT-CONDITIONS] equals “THREE”
Formtester URL : https://conditional-fields-cf7.bdwm.be/form-tester/?hash=4327d73d2723685e1842b8f6c05b4c18
Would be happy for any hint. Thank you!
Good afternoon
Here is my configuration:
Apple users don’t see some fields that are supposed to appear. As i don’t have any Apple device i’m struggling to find where the problem comes from. I tried to change the theme but nothing changed.
2 images to explain (sorry i don’t know how to integrate those images in this topic):
Here is an opened page you can use to try.
When the user clicks on “Appartement” he is supposed to have a new field that appear. For Apple Users it is not working.
Could you please help me?
Thank you
]]>Hi,
First I want to thank you for this amazing plugin, I have use it extensively in many of my websites.
I have a couple of questions before I purchase the Pro version.
I have many restaurant table booking forms, I have already two dropdown for time for Lunch and Dinner my request is about a new time dropdown choices. I need sometime to have a condition that if a date is within a set range ( for example 10 october to 27 october) a new time dropdown is appearing.
Second question is that I would need to set different opening times depending of the week day. For example if the date chosen is a monday it would show a specific hours dropdown for Mondays.
If this is possible with the PRO version I would probably purchase several licenses.
Best regards
:Daniel
Hi,
Found this error in the logs:
PHP Deprecated: ?Creation of dynamic property CF7CF::$steps is deprecated in \wp-content\plugins\contact-form-7-conditional-fields-pro\cf7cf.php on line 270
Hi,
I’m using the pro version(latest) and getting this error filling up my logs, if you can please have a look. Running PHP 8.2.22 and WP core 6.6.2
[20-Sep-2024 15:35:29 UTC] PHP Deprecated: ?Using ${var} in strings is deprecated, use {$var} instead in …\wp-content\plugins\contact-form-7-conditional-fields-pro\pro\summary.php on line 101
]]>Hi, I want to use your plugin with the CF7 Smart Grid Design Extension plugin, but after activating the [group][/group] tag doesn’t work anymore, it seems that the conclusing [/group] isn’t recognized in the html editor.
]]>Hello,
I installed the Conditional fields plugin and I have a problem.
Indeed, it seems that the script.js file is not loaded on the page.
The form is functional from the test area of ??the Conditional fields site, however it does not work on my site.
I attach two images that may help.
Thank you in advance for your help!
Can you confirm that with the pro version it is possible to create nested conditional redirects – I need to be able to setup something like the following.
If SELECT A OPTION 1 selected and SELECT B option 2 selected redirect to A
If SELECT A OPTION 1selected and SELECT B option 3 selected redirect to B
IfSELECT A OPTION 2 selected and SELECT B option 2 selected redirect to C
and so on.
]]>I am using your CF7 Conditional Fields plugin to achieve a requirement on a form but I also need something that is going to allow me to send confirmation emails with a URL contained in the email set according to selections made on the form via the conditional fields.
Is there anything in the pro version of CF7 Conditional Fields that will allow me to do this?
]]>Is it possible to check/compare if two email fields are the same or ‘equals’ ?
I am asking the user to enter their email address twice in my Form
Email Address [email* email-address akismet:author_email autocomplete:Email Address]
Confirm Email Address [email* email-address-confirm akismet:author_email autocomplete:Confirm Email Address]
[group emails-same]
Emails do not match!
[/group]
I cannot get it work work ??
Thank you ??
]]>last version is giving an error.
Deprecated: Creation of dynamic property CF7CF::$steps is deprecated in /htdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 270
From my hosting this function is not compatible with php 8.2
is there a fix ?
Thx
Hi,
if i show/hide a required field with a radio or checkbox, the response from the feedback validation “feedbacks” that idref=Null, for ALL inputs with errors. But for ux i need the idref which natively works pretty fine.
The problem doesnt exists if i dont use the radio/checkbox at all. Only if conditional fields are fired, contact 7 validation suddenly forget about idref …
And there is not much to configure. Sorry, that there isnt a working link because i am on staging.
Kind regards
Hi,
First of all, congratulations on the plugin. I have an issue: let’s say there is a radio field. Upon selecting a specific option, a text field appears. If the text field is populated but then I change the radio selection to another option (which makes the text field disappear), the previously entered message still appears in the email.
I hope this is clear. Is it possible to modify this behavior? Thank you.
]]>I’m currently on vacation so I won’t be able to work on the plugin (except for security-related issues or serious bug fixes).
I won’t be able to answer many support questions until mid-September.
Thanks for your understanding.
– Jules
]]>Hello,
I am using conditional fields on one of my forms to show a “select” field depending on the selection of another “select” field. I noticed that when using a theme I purchased, the fields are not updated correctly. I have to click on another form field in order to update the select fields. However, when I use a default WordPress theme, the fields update immediately.
I also tested the markup of the form and conditions on the test plugin’s environment (https://conditional-fields-cf7.bdwm.be/form-tester) and it works fine. I contacted the theme’s support, but they were unable to find the reason for this issue. They mentioned that they cannot support a third-party plugin.
Where i can send you the credentials for my site so you can check it as well? I need to find a solution as soon as possible. I would really appreciate your cooperation and help.
Thank you.
]]>I’m loading cf7 styles and scripts only on pages that have a form:
https://contactform7.com/loading-javascript-and-stylesheet-only-when-it-is-necessary/
This was working until this latest version of the [Conditional Fields for Contact Form 7] where I get the error “wpcf7 is not defined” in the browser console.
]]>When I create Group and Condition using conditional-fields-cf7, the “*” rule for the field type is not functioning. Hence, a user can select submit without any values in the fields with “*”. See code below … PS. works fine in forms without conditional or conditional groups
CODE:
Select Your Service Need (Required)
[checkbox* Service-Type "Service" "Estimate"]
[group Estimate]
[text* username class:form-control placeholder "Your Name"]
[text* Address class:form-control placeholder "Your Address"]
[number* Zip class:form-control placeholder "Your Zip"]
[tel* MobileNumber class:form-control placeholder "Your Mobile Phone Number"]
[textarea* Comments class:form-control placeholder "Tell Us More…"]
[/group]
[group Service]
[text* username class:form-control placeholder "Your Name"]
[text* Address class:form-control placeholder "Your Address"]
[number* Zip class:form-control placeholder "Your Zip"]
[tel* MobileNumber class:form-control placeholder "Your Mobile Phone Number"]
[select* services class:form-control "Select Service Type" "Emergency" "Drain" "Water Heater" "Water Leak" "Other"]
[select* Day class:form-control "Select Day" "Monday" "Tuesday" "Wednesday" "Thursday" "Friday"]
[select* Time class:form-control "Select Time" "8:00AM-10:00AM" "10:00AM-12:00PM" "12:00PM-2:00PM" "2:00PM-5:00PM" "After 5:00PM "]
[/group]
[submit class:btn class:btn-primary class:btn-modern class:font-weight-bold class:text-3 class:px-5 class:py-3 "Submit"]
]]>
Hi
CF7 has been updated for a few days but this plugin has not been updated yet?
Thanks. ??????
]]>Hi,
starting from version 2.4 groups don’t work. I can see the fields in the code, but they are “display:none”.
The function that assigns “display:block” based on conditions doesn’t seem to work.
I done the rollback to 2.3 and it works perfectly.
I have my form set up like this:
[select* topic include_blank "Test1|[email protected]" "Test2|[email protected]" "Test3|[email protected]"]
[group group_topic_test1 clear_on_hide]
[select* topic_test1 include_blank "AMG" "PRG" "KGL"]
[/group]
[group group_topic_test2 clear_on_hide]
[select* topic_test2 include_blank "ORG" "COB" "MNM"]
[/group]
[group group_topic_test3 clear_on_hide]
[select* topic_test3 include_blank "IRS" "LOM" "NJH"]
[/group]
When the first topic is selected, I get the first group of dropdown displayed and so on. This is all working fine.
However in the functions.php file, the submitted data $data = $submission->get_posted_data()
is not returning the data from the group fields:
function action_wpcf7_before_send_mail_test( $contact_form ) {
$form_id = $contact_form->id();
if ($form_id == "234") {
$submission = WPCF7_Submission::get_instance();
if ($submission) {
$data = $submission->get_posted_data();
}
}
.........
.........
.........
.........
}
It returns the selected ‘topic’ but not the group data:
$data: Array
(
[topic_test1] => Array
(
[0] =>
)
[topic_test2] => Array
(
[0] => Test2
)
[topic_test3] => Array
(
[0] =>
)
)
Am I missing something?
]]>Hello and thank you for your help,
I wanna use CF7 conditionnal fields but it seems there is a conflict with the template used by the wordpress site. I think it’s a jQuery problem but not sure.
I’m really lost. Could someone help me?
Thank you very much,
]]>the display: none switch is always a problem for real good animations. Have you ever thought about doing without it, at least in the case of the selected animation? There are quite a few toggles/accordions that show you how beautiful the effects can be without setting the display attribute.
]]>Hi there, first of all great plugin & documentation. I had a very good run with it so far. I am using the Pro Version (Version 2.4.12) right now.
But there is one thing i can’t get to working: I want to make required fields within a repeater based on a select field value.
Original form: https://conditional-fields-cf7.bdwm.be/form-tester/?test-form=repeater+num+entries+based+on+field+value
And i am trying to switch the required/ non required fields with a conditional. But the fields remain invisible. Can anybody help?
This is my try on the form-tester:
https://conditional-fields-cf7.bdwm.be/form-tester/?hash=bdd0750f5dbbcfe5d2599dbb8e96f0c6
Thanks in advance
Oli
Hi, im trying to hide hide fieldset is its empty. If I select “1” in the fieldset “NUMBER”, group a1 is displayed. If I select “2” in the fieldset, group a1 and group a2 etc. will be displayed. However, if I select “0” or “– Choose Number –” then an empty fieldset named “NUMBER” will be displayed. Could someone please advise me how to hide the fieldset when it is empty?
Numbers: *
[select* numberss first_as_label "-- Choose Number --" "0" "1" "2" "3"]
<fieldset>
<legend>NUMBER</legend>
[group a1]
Holidays in Americas
[select Americas "USA" "Mexico" "Brazil"]
[/group]
[group a2]
Holidays in Europe
[select Europe "UK" "Spain" "Italy" "Greece"]
[/group]
[group a3]
Holidays in Asia
[select Asia "Thailand" "UAE" "Vietnam"]
[/group]
</fieldset>
]]>
Hello,
thanks for your awesome plugin.
I updated to the latest version and now the conditional fields are no longer shown in the frontend. Activating Query monitor shows an error with a JS file.
—
Location: Missing Dependencies
Handle: wpcf7cf-scripts
Source: wp-content/plugins/cf7-conditional-fields/js/scripts.js
Dependencies: jquery, contact-form-7 (missing)
—
To try to solve I also deleted the plugin and reinstalled, but the message is still there, and it still doesn’t work.
Is there a procedure to do, or is it a bug?
Thanks
Hello,
I am experiencing issues with the Conditional Fields for Contact Form 7 plugin on my AJAX-powered website. Despite following the provided documentation and various troubleshooting steps, the conditional fields are not reinitializing correctly after an AJAX call.
After an AJAX call, the conditional logic for my forms does not work as expected. I have ensured that all required scripts are loaded and have followed the instructions from the documentation.
Steps Taken:
1. Ensured jQuery is Loaded:
function my_enqueue_scripts() {
wp_enqueue_script('jquery');
}
add_action('wp_enqueue_scripts', 'my_enqueue_scripts');
2. Added Initialization Script:
function initializeConditionalFields() {
if (typeof wpcf7 !== 'undefined' && typeof wpcf7cf !== 'undefined') {
const $form = jQuery('.wpcf7-form').eq(0);
wpcf7.init($form[0]);
wpcf7cf.initForm($form);
}
}
jQuery(document).ready(function() {
initializeConditionalFields();
});
jQuery(document).ajaxComplete(function() {
initializeConditionalFields();
});
Ensured no syntax errors in custom scripts or functions.php
.
Verified Theme Calls wp_footer()
:
Despite these steps, the conditional fields are not working correctly after an AJAX call.
Thank you for your support!
]]>