Forums

Multiplier dropdown event "Set option"

jaak 02 Dec, 2016
Hello,

I'm trying to get to work two dropdowns according to this FAQ (https://www.chronoengine.com/faqs/70-cfv5/5232-how-do-i-build-a-dynamic-drop-down-in-cfv5.html).
If I create simple form with with container and two dropdowns everything works OK.
Then I move these fields into Multiplier container then "Set option" event in the first dropdown not setting options for another dropdown and I can't find there the mistake is.

Multiplier container setup:
Replacer:__N__;Counter:1;Hide first:No;Disable first:No;Hide buttons:No;Start count:1;Data path:laud.
The first dropdown configuration:
Field name:laud[__N__][dropdown19],
ID:laud__N__dropdown19.
dropdown values:
1=Vali...
2=Välisvoodrilaud
3=Sisevoodrilaud
The second dropdown:
Field name:laud[__N__][dropdown20],
ID:laud__N__dropdown20.
Event configuration for the first dropdown:
If value=2 ; Set Options ; laud__N__dropdown20; valik=Välisvoodrilaud
If value=3 ; Set Options ; laud__N__dropdown20; valik=Sisevoodrilaud
GreyHead 02 Dec, 2016
Hi jaak,

I've never tried to do this. I think that it is probably possible but will require some custom coding. ChronoForms isn't clever enough to add the code to the new copies of the drop-downs that you add in the multiplier. You will need to do that - there's an very basic example of how to start this in this FAQ

Bob
This topic is locked and no more replies can be posted.