Logic Help in Conditional Field
-
Hello Support,
I use this plugin helpful in my form, but the problem arise in fetching field values in wordpress dashboard. i want to display only one Distt Name, only one column Tehsil and in one column village name, currently they will show in different columns. The Logic may be unique for this that i need ti implement. I want to simple logic for displaying District–> Tehsil—> Village. in select field of contact form 7.https://paste.pics/d8757063284a959a43604b7f49029368 for backend data display
I wrote this code in contact form 7
<div class=”col-sm-4″><label>Your District
[select Distt first_as_label “– Choose Your Distt –” “Hamirpur” “Bilaspur” “Una”]</label></div>[group Teh_hmr]
<div class=”col-sm-4″><label>Your Tehsil
[select tehsils first_as_label “– Choose Your Tehsil –” “Hamirpur” “Nadun” “Sujanpur” “Barsar” “Bhoranj”]</label></div>[group ch-vill_hmr]
<div class=”col-sm-4″><label>Your Village
[select sel-village first_as_label “– Select Your Village –” “Baru” “Lambloo” “Sarlin” “Pandher” “Sawal”]</label></div>
[/group][group ch-vill_nadun]
<div class=”col-sm-4″><label>Your Village
[select sel-village-nadun first_as_label “– Select Your Village –” “ND1” “ND2” “ND3” “Nd4″]</label></div>
[/group][group ch-vill_sujanpur]
<div class=”col-sm-4”><label>Your Village
[select sel-village-sujanpur first_as_label “– Select Your Village –” “SJ1” “SJ2” “SJ3” “SJ4″]</label></div>
[/group][group ch-vill_barsar]
<div class=”col-sm-4”><label>Your Village
[select sel-village-barsar first_as_label “– Select Your Village –” “BR1” “BR2” “BR3” “BR4″]</label></div>
[/group][group ch-vill_bhoranj]
<div class=”col-sm-4”><label>Your Village
[select sel-village-bhotanj first_as_label “– Select Your Village –” “BH1” “BH2” “BH3” “BH4″]</label></div>
[/group][/group]
[group teh_bilaspur]
<div class=”col-sm-4”><label>Your Tehsil
[select tehsils_bilaspur first_as_label “– Choose Your Tehsil –” “BilaspurSadar” “Ghumarwin” “Jhandutta” “ShriNainaDevi”]</label></div>[group ch-vill_bls]
<div class=”col-sm-4″><label>Your Village
[select sel-village_bls first_as_label “– Select Your Village –” “Bls1” “bls2” “bls3” “bls4″]</label></div>
[/group][group ch-vill_ghumarwin]
<div class=”col-sm-4”><label>Your Village
[select sel-village-ghrmarwin first_as_label “– Select Your Village –” “GHU1” “GHU2” “GHU3” “GHU4″]</label></div>
[/group][group ch-vill_jhandutta]
<div class=”col-sm-4”><label>Your Village
[select sel-village-jhandutta first_as_label “– Select Your Village –” “JH1” “JH2” “JH3” “JH4″]</label></div>
[/group][group ch-vill_ShriNainaDevi]
<div class=”col-sm-4”><label>Your Village
[select sel-village-ShriNainaDevi first_as_label “– Select Your Village –” “SN1” “SN2” “SN3” “SN4″]</label></div>
[/group][/group]
[group teh_una]
<div class=”col-sm-4”><label>Your Tehsil
[select tehsils_una first_as_label “– Choose Your Tehsil –” “Una” “Ghanari” “Haroli” “Amb” “Bangana”]</label></div>[group ch-vill_una]
<div class=”col-sm-4″><label>Your Village
[select sel-village-una first_as_label “– Select Your Village –” “UNA1” “UNA2” “UNA3” “UNA4″]</label></div>
[/group][group ch-vill_ghanari]
<div class=”col-sm-4”><label>Your Village
[select sel-village-ghanari first_as_label “– Select Your Village –” “GHA1” “GHA2” “GHA3” “GHA4″]</label></div>
[/group][group ch-vill_haroli]
<div class=”col-sm-4”><label>Your Village
[select sel-village-haroli first_as_label “– Select Your Village –” “HR1” “HR2” “HR3” “HR4″]</label></div>
[/group][group ch-vill_amb]
<div class=”col-sm-4”><label>Your Village
[select sel-village-amb first_as_label “– Select Your Village –” “AM1” “AM2” “AM3” “AM4″]</label></div>
[/group][group ch-vill_bangana]
<div class=”col-sm-4”><label>Your Village
[select sel-village-bangana first_as_label “– Select Your Village –” “BA1” “BA2” “BA3” “BA4”]</label></div>
[/group][/group]
and conditional logic is:
show [Teh_hmr] if [Distt] equals “Hamirpur”
show [ch-vill_hmr] if [tehsils] equals “Hamirpur”
show [ch-vill_sujanpur] if [tehsils] equals “Sujanpur”
show [ch-vill_barsar] if [tehsils] equals “Barsar”
show [ch-vill_nadun] if [tehsils] equals “Nadun”
show [ch-vill_bhoranj] if [tehsils] equals “Bhoranj”
show [teh_bilaspur] if [Distt] equals “Bilaspur”
show [ch-vill_bls] if [tehsils_bilaspur] equals “BilaspurSadar”
show [ch-vill_ghumarwin] if [tehsils_bilaspur] equals “Ghumarwin”
show [ch-vill_jhandutta] if [tehsils_bilaspur] equals “Jhandutta”
show [ch-vill_ShriNainaDevi] if [tehsils_bilaspur] equals “ShriNainaDevi”
show [teh_una] if [Distt] equals “Una”
show [ch-vill_una] if [tehsils_una] equals “Una”
show [ch-vill_ghanari] if [tehsils_una] equals “Ghanari”
show [ch-vill_haroli] if [tehsils_una] equals “Haroli”
show [ch-vill_amb] if [tehsils_una] equals “Amb”
show [ch-vill_bangana] if [tehsils_una] equals “Bangana”The page I need help with: [log in to see the link]
- The topic ‘Logic Help in Conditional Field’ is closed to new replies.