No, it should just work. I’ll record a video and post it here later
The form in the tutorial doesn’t work for me either. CF7 also gives this error:
“Multiple form controls are in a single label element.”
https://contactform7.com/configuration-errors/multiple-controls-in-label/
I’m using a child theme of oceanwp on php 7.4. Any suggestion to debug this?
Thanks
Please consider my post irrelevant. My mistake was naming a form-tag “children”. I guess it’s some sort of reserved word in CF7.
Thanks
Mine didn’t throw an error.
Hope to see a video soon.
sorry, the video didn’t come 🙁
If someone else feels like posting a video of this working, that would be cool 🙂
Meanwhile, if anybody wants to mess around testing some forms, you can do so here: https://conditional-fields-cf7.bdwm.be/form-tester/?test-form=promo+form
-
This reply was modified 5 years, 4 months ago by
Jules Colle.
Hi Jules,
Thanks for the great plugin.
Any thoughts on this?
Mattia (@albazeus)
2 months ago
My mistake was naming a form-tag “children”. I guess it’s some sort of reserved word in CF7.
I have just had to go and fix several websites where all of the conditional field were never appearing.
The solution was to change the ‘children’ field name to something else, and update the conditions to match.
Having a field called ‘children’ prevents all of the conditional field from working, but there are no errors in the console!
It is incredibly common to have a ‘children’ field on accommodation / holiday enquiry forms, and then to conditionally have children’s age(s) fields appear if there are any children.
I ran a little test on one of my sites, reverting updates with GIT, and my websites broke when I updated them from cf7-conditional-fields 1.9.9 to 1.9.11 back in Sept, so either 1.9.10 or 1.9.11 introduced the error.
Before I changed the field name, I had tried disabling all other plugins. It made no difference.
Regards
ps. Thanks Mattia for saving me some time.
-
This reply was modified 5 years, 3 months ago by
Andy Walker.
Thanks Andy,
Since this is a pretty important bug I’ve created a new topic for this: https://ww.wp.xz.cn/support/topic/cannot-use-children-as-field-name/
Feel free to add additional comments if you have any