cfform Server Side Validation Gotcha
Related Categories: ColdFusion
Want to aggravate yourself for 10 minutes? Try this one. Create a cfform. Name a form field "foo_required". Add no other validation whatsoever. Submit the form without populating the field. Go crazy for 10 minutes until you realize that any field names that end in "_required" trigger CFs server side validation. We learn something new everyday huh?
What's New
Calendar
Subscribe
Enter your email address to subscribe to this blog.
Archives By Subject
AIR (2) [RSS]
Ajax (42) [RSS]
Ant (2) [RSS]
Apache Derby (3) [RSS]
Blogging (23) [RSS]
cfcExplorer (2) [RSS]
cfcFlexplorer (5) [RSS]
cfCodePress (1) [RSS]
CFCs (4) [RSS]
CFDdlUtils (1) [RSS]
CFEclipse (7) [RSS]
CFeMmys (4) [RSS]
cfImageCropper (5) [RSS]
cfResizer (1) [RSS]
cfsnippets (15) [RSS]
cfTimeline (7) [RSS]
CFUnited 2007 (5) [RSS]
Code Generation (6) [RSS]
ColdFusion (285) [RSS]
CSS (3) [RSS]
Eclipse (4) [RSS]
Excel Hacks (2) [RSS]
Excel Tips (1) [RSS]
Ext (5) [RSS]
Flash Forms (37) [RSS]
Flex (21) [RSS]
Funny Stuff (10) [RSS]
Gadgets and Technology (2) [RSS]
Gaming (8) [RSS]
IIS (2) [RSS]
iLearn (2) [RSS]
InstantSpot (3) [RSS]
Java (4) [RSS]
JavaScript (6) [RSS]
jQuery (4) [RSS]
JSON (1) [RSS]
Junk (1) [RSS]
Mach-ii (2) [RSS]
Management (2) [RSS]
Misc (29) [RSS]
Mobile (1) [RSS]
Model-Glue (12) [RSS]
Off Topic (30) [RSS]
OO (5) [RSS]
Personal (31) [RSS]
picViewer (3) [RSS]
pptutils (2) [RSS]
Project Learn (10) [RSS]
Rants (9) [RSS]
Rich Applications (2) [RSS]
Sharepoint (1) [RSS]
SlideSix (20) [RSS]
SQL (36) [RSS]
Usability (3) [RSS]
Vista (2) [RSS]
Web 2.0 (2) [RSS]
XML (1) [RSS]
Tags
Recent Entries
Recent Comments
Adding Auto Generated Code Downloads to BlogCFC
ada5fsa said: http://www.mountwashingto...
http://extjs.com/forum/me...
h...
[More]
BlogCFC Survey #2
ada5fsa said: http://www.mountwashingto...
http://extjs.com/forum/me...
h...
[More]
Most Difficult Captcha Of All Time
kokkooo said: [url=http://synchrophase.info/...]消費者金融 ブラック[/url]
[url=http://geji-geji.com/]消費者金融ブラック[/url]
[url=http...
[More]
Most Difficult Captcha Of All Time
kokkooo said: <a href="http://synchrophase.info/...">消費者金融 ブラック</a>
<a href="http://gej...
[More]
Using A PlayStation 2 HDD In Your PC
Vodin said: Well dang. Thanks man, my uncle who owns a Video Game shop had a PS2 harddrive in the junk box, I sn...
[More]
Blogs I Read
Brian Meloche
Brian Rinaldi
Charlie Griefer
Andy Jarrett
Peter Bell
Brian Kotek
Jared Rypka Hauer
Joe Rinehart
Gary Gilbert
Charlie Arehart
Mark Mandel
Doug Hughes
Neil Middleton
Mark Drew
Rey Bango
Rob Gonda
Scott Pinkston
Aaron West
Aaron Lynch
Scott Stroz
Dave Shuck
Sean Corfield
Ben Forta
Dan Vega
Dan Wilson
Ryan Everhart
Robert Froehling



You might try the following suffixes, too:
_integer, _float, _range, _date, _time, _eurodate
Best,
Chris
I noticed that if you use a regular form and have a form field that uses one of these suffixes, the field will go missing from the fieldnames variable. However, the content of the variable will still be present in the form (if you do a cfdump).
I met this problem trying to figure out why a form variable wouldn't appear in the attribute scope while using the FormURL2Attribute custom tag. It had the suffix _date.