How are you.
I need a little help to build a special condition in a dbread.
The condition must be based on 2 dropdown fields and the result shows it in a third dropdown ..
The first field (dropdown) is simple selection.
The second field (dropdown) is multi-select.
Dropdown27 (single selection): example:
Option1 1 = Spain
Option2 2 = usa
etc..
idioma_destino [] (multi-select): example:
Option1 a = A1 selected
Option2 b = A2 selected
Option2 c = A3
I need a condition with iteration for Dropdown2.
Return array condition: Dropdown1, Dropdown2[]
Currently this is the real code:
It works, but I can only read (with ajax) the last selected item from dropdown2
How do I make a loop for the multiselect dropdown?
Pseudo code:
Return array ('cd_language_name' => $ form-> data ['dropdown27'], 'cd_servicio' => $ form-> data ['idioma_destino'] [0]);
Return array ('cd_language_name' => $ form-> data ['dropdown27'], 'cd_servicio' => $ form-> data ['idioma_destino'] [1]);
Return array ('cd_language') => $ form-> data ['dropdown27'], 'cd_servicio' => $ form-> data ['idioma_destino'] [2]);
I just need the AJAX construct works fine ... I need the iteration with the second dropdown multi select.
thank you very much
a greeting!
Javierp
I need a little help to build a special condition in a dbread.
The condition must be based on 2 dropdown fields and the result shows it in a third dropdown ..
The first field (dropdown) is simple selection.
The second field (dropdown) is multi-select.
Dropdown27 (single selection): example:
Option1 1 = Spain
Option2 2 = usa
etc..
idioma_destino [] (multi-select): example:
Option1 a = A1 selected
Option2 b = A2 selected
Option2 c = A3
I need a condition with iteration for Dropdown2.
Return array condition: Dropdown1, Dropdown2[]
Currently this is the real code:
<? Php
Return array ('cd_language' => $ form-> data ['dropdown27'], 'cd_servicio' => $ form-> data ['idioma_destino']);
?>
It works, but I can only read (with ajax) the last selected item from dropdown2
How do I make a loop for the multiselect dropdown?
Pseudo code:
Return array ('cd_language_name' => $ form-> data ['dropdown27'], 'cd_servicio' => $ form-> data ['idioma_destino'] [0]);
Return array ('cd_language_name' => $ form-> data ['dropdown27'], 'cd_servicio' => $ form-> data ['idioma_destino'] [1]);
Return array ('cd_language') => $ form-> data ['dropdown27'], 'cd_servicio' => $ form-> data ['idioma_destino'] [2]);
I just need the AJAX construct works fine ... I need the iteration with the second dropdown multi select.
thank you very much
a greeting!
Javierp