Hi,
I am trying to give users the option of describing a specific field by clicking a series of checkboxes to give multiple values. I have created the checkbox in the.cfg file as follows....
%db_checkbox_fields = (
GARDEN => 'Large,Small,Rear,Front,Side,Private,Enclosed,Child Safe,Sunny,South Facing,Easily Maintained',
);
and used the following code in html.pl to generate the required options in the form.
|; print &build_checkbox_field ("GARDEN", "$rec{'GARDEN'}"); print qq|
The idea is that users can describe their gardens using the various parameters rather than type a description in a textbox, but when I add a record, only one of the values is assigned to the field. Is there a way to give a field like this multiple values?????
Thanks in advance,
Mick McG
I am trying to give users the option of describing a specific field by clicking a series of checkboxes to give multiple values. I have created the checkbox in the.cfg file as follows....
%db_checkbox_fields = (
GARDEN => 'Large,Small,Rear,Front,Side,Private,Enclosed,Child Safe,Sunny,South Facing,Easily Maintained',
);
and used the following code in html.pl to generate the required options in the form.
|; print &build_checkbox_field ("GARDEN", "$rec{'GARDEN'}"); print qq|
The idea is that users can describe their gardens using the various parameters rather than type a description in a textbox, but when I add a record, only one of the values is assigned to the field. Is there a way to give a field like this multiple values?????
Thanks in advance,
Mick McG