Gossamer Forum
Home : Products : DBMan : Installation :

Adding Check boxes

Quote Reply
Adding Check boxes
I want to add 2 new fields, each containing 6 check boxes. How do I do this?
Quote Reply
Re: Adding Check boxes In reply to
You don't. You add 12 new fields, each one being a checkbox field.

If you want several options in each of two fields, use 2 select lists.

------------------
JPD





Quote Reply
Re: Adding Check boxes In reply to
Ok.......
So I've declared the check box fields in the default.cfg, what is the code for the
%db_checkbox_fields further down this script?

The fields are..
Material1=brass, Material2=steel, Material3=stainless, etc..,

Thanks, Paul




Quote Reply
Re: Adding Check boxes In reply to
Code:
%db_checkbox_fields = (
Material1 => 'brass',
Material2 => 'steel',
Material3 => 'stainless'
);

------------------
JPD





Quote Reply
Re: Adding Check boxes In reply to
Brilliant !

And finally a formating issue.
Is there anyway DBman can display the checkboxes side by side, so instead of giving me an unsightly line 12 high, they can be stacked in twos - 6 high or in three's 4 high.

It's getting late here, so i'll make this last mod, thanks. Paul
Quote Reply
Re: Adding Check boxes In reply to
If you want to format your checkboxes, you'll need to create your own sub html_record_form in the html.pl file instead of using autogenerated forms.

Nite-nite. Smile


------------------
JPD