I have this problem:
I need 3 different multiple dropdonws that according to one choice deliver a value from a big array.
Basically:
dropdown "provincia" call set dynamic option to custom code on_load_comuni
in custom code I have a huge array ( more than 500)
<?php
$comuni = array(
"AG" => array(419084001 => AGRIGENTO,
419084002 => ALESSANDRIADELLAROCCA,
419084003 => ARAGONA,
419084004 => BIVONA,
419084005 => BURGIO,
419084006 => CALAMONACI,
etc....
end with
echo json_encode($comuni[$form->data["provincia"]]);
Thant's works perfectly.
The problem is that I need other 2 similar dropdown that basically use the same array, but for different field ID (provincia_ospite and provincia_documento)
I cannot insert more on_load because the form doesn't save it ( event if I enlarge max_input_vars and suhosin.get.max_vars in php.ini)
Anyone has a suggestion how to use the same array for different field IDs?
Thanks