最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugin contact form 7 - Related Drop down list

programmeradmin1浏览0评论

I am working with Conditional Fields Contact Form 7. I would like to load values of a Drop down list based on value of another drop down list. My Code is like below

<label> Division*
[select division first_as_label “Choose your Division” “BARISHAL” “CHITTAGONG” “DHAKA” “KHULNA” “MYMENSINGH” “RAJSHAHI” “RANGPUR” “SYLHET”] </label>

<label> District*
[select district first_as_label “Choose your District”
[group disrtict]
"BARISHAL" "BARGUNA" "BHOLA" "JHALAKATHI" "PIROJPUR" "POTUAKHALI"] </label>
[/group]

But this is not working.

I am working with Conditional Fields Contact Form 7. I would like to load values of a Drop down list based on value of another drop down list. My Code is like below

<label> Division*
[select division first_as_label “Choose your Division” “BARISHAL” “CHITTAGONG” “DHAKA” “KHULNA” “MYMENSINGH” “RAJSHAHI” “RANGPUR” “SYLHET”] </label>

<label> District*
[select district first_as_label “Choose your District”
[group disrtict]
"BARISHAL" "BARGUNA" "BHOLA" "JHALAKATHI" "PIROJPUR" "POTUAKHALI"] </label>
[/group]

But this is not working.

Share Improve this question asked Aug 1, 2019 at 4:20 FoysalFoysal 4451 gold badge5 silver badges16 bronze badges 1
  • you cannot use conditional logic with just CF7 plugin. if I recall correctly, there is a different 3rd party (not from the CF7 developer), which adds the facility you required. I dun remember the name correctly, but you'll be able to find it after a quick search – Vishwa Commented Aug 1, 2019 at 8:12
Add a comment  | 

1 Answer 1

Reset to default 1

You can do this with Conditional Contact Form 7 plugin, for each values in your first dropdown you need to create a corresponding dropdown field,

`[select first-dropdown "chose a value" "value 1" "value 2"] [group dropdown-value-1] [select value-1-dropdown "chose option for value 1" "value 1a" "value 1b"] [/group] [group dropdown-value-2] [select value-2-dropdown "chose option for value 2" "value 2a" "value 2b"] [/group]

You then need to setup your visibility rules, and to showdropdown-value-1` group when 'value 1' is selected in the first dropdpwn and so on. See this tutorial which explains all the steps in details.

发布评论

评论列表(0)

  1. 暂无评论