Yes, anything that ends with "_required" is processed as a server-side
validation instruction by CF when the form is submitted, regarding the
field named the same as the part before that string.  So in your case,
CF is doing validation to ensure that the "evaluation" form field is
present.

Unfortunately, there's no way to turn off that behaviour.  To avoid
it, I usually camelCase my variable names; no underscores means no
hijacking.

cheers,
barneyb

On Wed, 20 Oct 2004 09:40:47 -0700, Cassidy Symons <[EMAIL PROTECTED]> wrote:
> I'm have a really weird problem here...I've got a form, and one of the
> fields is called 'evaluation_required' - it's a Yes/No field with values
> of 1/0. The column in the database has the same name, and is a BIT field
> (technically TINYINT(1) since MySQL has no real BIT, but...).
> 
> When I submit the form including that field, I receive this error message:
> 
> Form Entries Incomplete or Invalid
> One or more problems exist with the data you have entered.
> 
>     * 0
> 
> Use the Back button on your web browser to return to the previous page
> and correct the listed problems.
> 
> Obviously the 0 can either be 0 or 1, and I checked, it bombs on both
> values (and any other value for that matter). It also bombs regardless
> of what type of form field I use (select, text, radio, hidden, etc.),
> but when I change the field name to evaluation_required2, it goes
> through just fine.
> 
> I did a quick search on Google for 'form.evaluation_required' and
> 'evaluation_required' and turned up nothing related to ColdFusion. Has
> anyone ever run into this before? I've never known
> form.evaluation_required to be an illegal field name...is it?
> 
> Thanks.
> 
> Cassidy
> 
-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/blog/

I currently have 2 GMail invites for the taking

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.houseoffusion.com/banners/view.cfm?bannerid=11

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182022
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to