Hello there,
Is it possible to do the following...
I have 2 different fields that I populate using the "build_select_field" sub. I want the second field to be dependent on the selection of the first one so that only the relevant options will show on the selection box.
just as an example...
type1 => 'Cars,Motorcycles'
type2 => 'BMW,MERCEDES,FORD'
type3 => 'KAWASAKY,SUZUKY,HONDA'
My first field would display the type1 options.
My second field would display either type2 or type3 options depending on what was selected in the first field (or a default with all type2 and type3 if the first field has not been selected).
So far I have an extended "build_select_field" sub that allows me to pass which type to display.
build_select_field_ext ("Status", "$rec{'Status'}","type1");
The problem with this is that it is all static unless I can put some sort of runtime conditional build_select_field that gets build depending on the value of the first field.
Is that possible?
Thanks
-JO
Is it possible to do the following...
I have 2 different fields that I populate using the "build_select_field" sub. I want the second field to be dependent on the selection of the first one so that only the relevant options will show on the selection box.
just as an example...
type1 => 'Cars,Motorcycles'
type2 => 'BMW,MERCEDES,FORD'
type3 => 'KAWASAKY,SUZUKY,HONDA'
My first field would display the type1 options.
My second field would display either type2 or type3 options depending on what was selected in the first field (or a default with all type2 and type3 if the first field has not been selected).
So far I have an extended "build_select_field" sub that allows me to pass which type to display.
build_select_field_ext ("Status", "$rec{'Status'}","type1");
The problem with this is that it is all static unless I can put some sort of runtime conditional build_select_field that gets build depending on the value of the first field.
Is that possible?
Thanks
-JO