Hi! Ever wanted to do something like this with Contact Form 7?
[checkbox something-like-what use_label_element "Something like what?"]
[group this]
Something like this! Making additional fields appear and disappear based on the user's input.
[radio what-do-you-think use_label_element class:block "Wow! That's pretty cool!" "Meh." "I'm not convinced / Show me more."]
[group wow]
Pretty sweet huh? You can create forms like this yourself using the 100% Free Conditional Fields for Contact Form 7 plugin
Get the Free plugin
Check out the tutorial
[/group]
[group meh]
I get it, nobody likes filling out forms.
[/group]
[group more]
Okay, what would you like to know?
[select what-would-you-like-to-know first_as_label "-- Take your pick --" "What about a multiselect field?" "Does it work with text fields as well?" "Anything more advanced?"]
[group multiselect]
Sure. Fields with multiple values are supported as well. You can show and hide multiple groups of fields at the same time.
Select your favorite fruits
[select favorite-fruits multiple "apple" "banana" "grapes" "lemon" "orange" "pineapple" "strawberry" "watermelon"]
[group apple inline]
[/group][group banana inline]
[/group][group grapes inline]
[/group][group lemon inline]
[/group][group orange inline]
[/group][group pineapple inline]
[/group][group strawberry inline]
[/group][group watermelon inline]
[/group]
Check your favorite fruits
[checkbox favorite-fruits-check use_label_element "apple" "banana" "grapes" "lemon" "orange" "pineapple" "strawberry" "watermelon"]
[group apple-check inline]
[/group][group banana-check inline]
[/group][group grapes-check inline]
[/group][group lemon-check inline]
[/group][group orange-check inline]
[/group][group pineapple-check inline]
[/group][group strawberry-check inline]
[/group][group watermelon-check inline]
[/group]
Food vector created by rawpixel.com - www.freepik.com
[/group]
[group textfields]
Why not give it a try?
[text text-any]
[group text-entered-any]
Great job!
Conditional fields works for all text input types, including number, telephone, email, date, ...
You can also trigger groups on specific values.
Try entering the text hello
in the field above
[/group]
[group text-entered-hello]
Hello, yourself!
You can take this further with the PRO plugin, which adds support for regular expressions, relational operators and even custom functions
[text text-advanced]
- Try entering a number greater than 10
- Try entering a power of 2 (2, 4, 8, 16, 32, ...)
- Try entering a valid e-mail address
[group greater-than-10]
The number you entered is greater than 10!
[/group]
[group power-of-2]
The number you entered is a power of 2!
[/group]
[group valid-email]
The email address you enter seems valid!
[/group]
[/group]
[/group]
[group more-advanced]
There's a lot more you can do with Conditional Fields PRO
[/group]
[/group]
[/group]