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 (9) [RSS]
Ajax (45) [RSS]
Ant (2) [RSS]
Apache Derby (4) [RSS]
Blogging (23) [RSS]
cfcExplorer (2) [RSS]
cfcFlexplorer (5) [RSS]
cfCodePress (1) [RSS]
CFCs (4) [RSS]
CFEclipse (7) [RSS]
CFeMmys (6) [RSS]
cfImageCropper (6) [RSS]
cfsnippets (15) [RSS]
cfTimeline (7) [RSS]
CFUnited (5) [RSS]
CFUnited 2007 (5) [RSS]
Code Generation (6) [RSS]
ColdFusion (309) [RSS]
Communications (1) [RSS]
CSS (5) [RSS]
Eclipse (4) [RSS]
Excel Hacks (2) [RSS]
Ext (6) [RSS]
Flash Forms (37) [RSS]
Flex (35) [RSS]
Funny Stuff (12) [RSS]
Gaming (8) [RSS]
Google (1) [RSS]
IIS (2) [RSS]
iLearn (2) [RSS]
Java (5) [RSS]
JavaScript (11) [RSS]
jQuery (7) [RSS]
Management (2) [RSS]
Misc (31) [RSS]
Mobile (1) [RSS]
Model-Glue (12) [RSS]
Networking (4) [RSS]
Off Topic (32) [RSS]
OO (5) [RSS]
Personal (35) [RSS]
picViewer (3) [RSS]
pptutils (2) [RSS]
Project Learn (10) [RSS]
Rants (9) [RSS]
Rich Applications (3) [RSS]
Sharepoint (1) [RSS]
SlideSix (49) [RSS]
SQL (37) [RSS]
Usability (5) [RSS]
Vista (4) [RSS]
Web 2.0 (2) [RSS]
Tags
Recent Comments
Adding Auto Generated Code Downloads to BlogCFC
ada5fsa said: http://www.ibiblio.org/st...
http://www.ncaonline.org/......
[More]
Chinese Birth Calendar Accuracy Test
mama to be said: ok so i will be 2 months shy of 18 when i have my baby. this calendar does not technically work for ...
[More]
Fixing 'User Profile Service Failed The Logon' on Vista
Mike said: That fix worked although all i did was remove .bak and reset state to 0.
User was able to log in to...
[More]
Chinese Birth Calendar Accuracy Test
Melissa said: Wrong for my daughter, which it predicted to be a boy... we'll see for #2. Predicts a girl (maybe, f...
[More]
Adding Auto Generated Code Downloads to BlogCFC
fweerw said: http://www.ibiblio.org/st...
http://www.cambodia.ait.a......
[More]
Blogs I Read
Brian Meloche
Brian Rinaldi
Charlie Griefer
Andy Jarrett
Joshua Cyr
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
Ben Nadel






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.