Gossamer Forum
Home : Products : DBMan : Discussions :

Multiple Radio Fields

Quote Reply
Multiple Radio Fields
How do I enter multiple radio fields in the CFG file?



I've got this:


# Radio fields. Field name => comma seperated list of radio buttons.
%db_radio_fields = (Size_of_business => '1 - 10 employees, 11-25 employees, 26 - 50

employees, 51 - 100 employees, 101 or more employees' );

But I have one more field that should have radio buttons; what do I put after the ";" or do I even use a ";" ...?
Quote Reply
Re: [rayramon] Multiple Radio Fields In reply to
Code:
%db_radio_fields = (
Size_of_business => '1 - 10 employees, 11-25 employees, 26 - 50 employees, 51 - 100 employees, 101 or more employees',
NextItem => 'stuff,morestuff',
MoreItems => 'evenmore,andmore'no comma on last list item
);
Quote Reply
Re: [Watts] Multiple Radio Fields In reply to
thanks much! Instead of an error message I'm now getting a box to type in text but not the check boxes

see: http://www.smallbiztechnology.com/cgi-bin/dbman/db.cgi?db=pcexporegistration&uid=&add_form=1

here's the HTML:



# Radio fields. Field name => comma seperated list of radio buttons.
%db_radio_fields = (

Size_of_business => '1 - 10 employees,11 - 25 employees,26 - 50 employees,51 - 100 employees, 101 or more employees',

type_of_business =>'legal,accounting,medical,finance,insurance,real_estate,manufacturing, construction,retail,wholesale retail,technology sales,technology repair,technology consulting'

);



and this is what's in my config file:



Size_of_business => [5, 'alpha', '40x3', 255, 0, '', ''],
Type_of_business => [6, 'alpha', '40x3', 255, 0, '', ''],



thanks very, very much 4 ur help!
Quote Reply
Re: [rayramon] Multiple Radio Fields In reply to
Check the spelling/case of your field names...

type_of_business

and

Type_of_business

are read as two separate field names.

Are you letting the script build your html pages (using autogenerate) or not? Possible troubleshooting methods will depend on this.
Quote Reply
Re: [Watts] Multiple Radio Fields In reply to
Wink works fin now - thanks so much

Yeah- I'm letting the script build the HTML pages

If I can help u out let me know - I'm at http://www.smallbiztechnology.com
Quote Reply
Re: [rayramon] Multiple Radio Fields In reply to
You say you have:

Size_of_business => [5, 'alpha','40x3',255, 0, '', ''],
Type_of_business => [6, 'alpha','40x3',255, 0, '', ''],

in your .cfg file. You are defining your fields as textareas and not for use as radio fields?

You may want to change that to:

Size_of_business => [5, 'alpha','0',255, 0, '', ''],
Type_of_business => [6, 'alpha','0',255, 0, '', ''],

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/