Continuation of
Field (Can not be left blank) when value == 0?
Okay, I started a new thread for my problem because the problem has changed dramatically from what I thought it was.
The original problem was that when the add form was submitted, all fields with a value of 0 (zero) changed to a value of nothing thus returning an error message for required fields "FieldName (Can not be left blank)".
After some help from the forum and a little trial and error I narrowed the problem down to the File Upload 2 Mod. Somewhere in the mod, 0 is replaced with ' ' (blank).
Anybody know of a fix for this:
Thanks for any help or ideas.
beetleman
Marcus L. Griswold
Field (Can not be left blank) when value == 0?
Okay, I started a new thread for my problem because the problem has changed dramatically from what I thought it was.
The original problem was that when the add form was submitted, all fields with a value of 0 (zero) changed to a value of nothing thus returning an error message for required fields "FieldName (Can not be left blank)".
After some help from the forum and a little trial and error I narrowed the problem down to the File Upload 2 Mod. Somewhere in the mod, 0 is replaced with ' ' (blank).
Anybody know of a fix for this:
When new records are added to the database, instead of 0 (zero) being added as the value of the field, only a blank is added to the database.
As a result, if the field happens to be a required field, an error message is returned.
This is true of any and all fields where the value entered is 0.
By the way, 00 (double zero) is added to the database correctly.
I have tested repeatedly and the problem only occurs when the File Upload 2 Mod is used.
How do I prevent the File Upload 2 Mod from replacing zeros with blank entries. This happens for select, text, and textarea using either 'alpha' or 'numer' definitions. Additionally, being a required field or default value does not dictate whether or not zero turns to blank.
I've tried defining valid entries to include 0 but this didn't help either.
Thanks for any help or ideas.
beetleman

Marcus L. Griswold