Conditional Fields for Contact Form 7 – have an array type of select

Question

I have very strange request which I seem to have problem realising with the combination of CF7 + Conditional Fields plugins.

Basically I’m trying to do something like this:

[select oblast "1" "2" "3" "4" "5"] 
[group 1]
<label> Obshtina
[select obshtina include_blank "1" "2" "3"] </label>
[/group]
[group 2]
<label> Obshtina
[select obshtina include_blank "4" "5" "6"] </label>
[/group]
[group 3]
<label> Obshtina
[select obshtina include_blank "7" "8" "9"] </label>
[/group]
etc.

if oblast == 1 show group 1
if oblast == 2 show group 2
etc.

What I’m trying is to based on ‘oblast’ field to receive just 1 field ‘obshtina’ so I can have only one pair of oblast-obshtina fields, not hundred of ‘obshtina’ fields. Unofortunately I can’t setup the select field “obshtina” like this:

<select name="obshtina[]"> 

so this is a problem and I have no idea how to achieve it.

Sorry if my explanation is messy, but I hope you get the idea.

Will really appreciate every ideas!

Thanks in advance!

0
milen 1 month 2021-05-17T10:10:01-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse