Gossamer Forum
Home : Products : DBMan : Customization :

Search with radio buttons?

Quote Reply
Search with radio buttons?
 
In the %db_def array, I define ...

Status => [3, 'alpha', 0, 20, 1, 'Yes', 'Not Contacted|Not Interested|Maybe Later']

Later in the config file I add ...

%db_radio_fields = ( Status => 'Not Contacted, Not Interested, Maybe Later' );

Everything works fine, except that when
I "View" (search) and just select the
"Not Interested" or "Maybe Later" radio
button, I don't come up with any hits
even when the database has the right entries. "Not Contacted" works fine, though (which is odd).

Thanks for the help.
Quote Reply
Re: Search with radio buttons? In reply to
In the %db_def = ( ); area, change your codes from:

Code:
Status => [3, 'alpha', 0, 20, 1, 'Yes', 'Not Contacted|Not Interested|Maybe Later']

TO

Code:
Status => [3, 'alpha', 0, 20, 1, 'Not Contacted', '']

The "default" value should be whatever you want to put in records as default in that particular field. I don't know why you put all the values in the valid expression slot.

Your %db_radio_fields values look okay, except make sure that there are NO spaces between the values.

This should work.

Regards,


------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Search with radio buttons? In reply to
 
Thanks! I was using spaces in my
%db_radio_field array and your
suggestions fix it.