Forums

Condition on dropodown

greghph 17 Jul, 2017
Hi, i have a problem
when i load a form on setup i insert a dbread with a model [elenco_loghi]. this create an array:
[elenco_loghi] => Array
(
[0] => Array
(
[cf_id] => 8
[nome] => 850 GRADI
[tipo_logo] => varie
)

[1] => Array
(
[cf_id] => 1
[nome] => CE
[tipo_logo] => ce
)

[2] => Array
(
[cf_id] => 2
[nome] => CLASSE 1
[tipo_logo] => classe
)

[3] => Array
(
[cf_id] => 3
[nome] => CLASSE 2
[tipo_logo] => classe
)

[4] => Array
(
[cf_id] => 4
[nome] => CLASSE 3
[tipo_logo] => classe
)

[5] => Array
(
[cf_id] => 5
[nome] => Classe Energetica A
[tipo_logo] => classe
)


now i have two dropp down; on first dropdown i want to populate only [tipo_logo]=classe and in the second only [tipo_logo]=varie
How can I do?
thanks
GreyHead 17 Jul, 2017
Hi greghph ,

The simplest way is probably to use two DB Read actions - one for each drop-down. Then you can control the data using the Conditions box.

Otherwise you can use PHP in a Custom Code action to separate the data into two arrays.

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