Gossamer Forum
Home : Products : DBMan : Customization :

Re: [joematt] Field (Can not be left blank) when value == 0?

Quote Reply
Re: [joematt] Field (Can not be left blank) when value == 0? In reply to
Okay, here's the deal.

When I add a new record, any field with "0" (zero) in it is replaced with a blank. In the case of select menus, "---" is selected instead of "0".

It is important that fields with a zero value in them be saved correctly. Otherwise, users will not be able to search for "0". Blank and --- are used as any during searches. I considered using N/A or None but this would further complicate the search process, javascripts, and the general look and feel of the database.

As an example, toys that children ride:
Toy Wheels
pogo-stick........0
unicycle............1
bicycle..............2
tricycle.............3

In this example, 0 is a valid and important value for wheels as related to pogo-stick

So, how do I modify sub validate_record or sub parse_form to prevent 0 from changing to nothing? (Odd question I know, 0 is the mathmatical representation for nothing) Wink

I could really use some help here. Been stuck on this for a week (eternity when setting up a web site).

Thanks,
beetlemanTongue

Marcus L. Griswold

Last edited by:

beetleman: Apr 25, 2003, 6:47 AM
Subject Author Views Date
Thread Field (Can not be left blank) when value == 0? beetleman 3940 Apr 20, 2003, 3:20 AM
Thread Re: [beetleman] Field (Can not be left blank) when value == 0?
joematt 3835 Apr 21, 2003, 1:20 PM
Thread Re: [joematt] Field (Can not be left blank) when value == 0?
beetleman 3838 Apr 25, 2003, 6:18 AM
Thread Re: [beetleman] Field (Can not be left blank) when value == 0?
joematt 3826 Apr 25, 2003, 9:09 AM
Thread Re: [joematt] Field (Can not be left blank) when value == 0?
esm 3846 Apr 25, 2003, 11:21 AM
Thread Re: [esm] Field (Can not be left blank) when value == 0?
beetleman 3837 Apr 25, 2003, 7:29 PM
Post Re: [beetleman] Field (Can not be left blank) when value == 0?
esm 3812 Apr 25, 2003, 8:59 PM
Thread Re: [beetleman] Field (Can not be left blank) when value == 0?
esm 3807 Apr 26, 2003, 3:36 AM
Thread Re: [esm] Field (Can not be left blank) when value == 0?
beetleman 3807 Apr 26, 2003, 2:55 PM
Thread Re: [beetleman] Field (Can not be left blank) when value == 0?
esm 3803 Apr 26, 2003, 5:16 PM
Thread Re: [esm] Field (Can not be left blank) when value == 0?
beetleman 3790 Apr 26, 2003, 6:40 PM
Post Re: [beetleman] Field (Can not be left blank) when value == 0?
beetleman 3776 Apr 26, 2003, 10:17 PM