Well not 'anywhere' in the field name, just at the end with the leading 
underscore as you showed with your examples.  But thinks like "dateThis" or 
"date_that" or even "some_date_foobar" would be just fine.  But if the 
fieldname ends in "_date" or any of several other validator options they 
receive special attention from the cold fusion processor.

Here 
[http://livedocs.macromedia.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/formatData8.htm]
 is a list and explanation on how to use this feature.


--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

....-----Original Message-----
....From: Ray Champagne [mailto:[EMAIL PROTECTED]
....Sent: Thursday, August 04, 2005 1:44 PM
....To: CF-Talk
....Subject: Re: Missing value in the Form.Fieldnames variable
....
....If the word "date" is anywhere in the form field name, they will not be
....output (ie to_date, from_date, etc).  I went through this before,
....couldn't figure out why, then someone here (Ian maybe?) pointed out this
...."feature" of CF.
....
....So, what are the names of the form fields that you're trying to pass?
....
....Ray
....
....Tom McNeer wrote:
....> Just curious if anyone else has experienced this:
....>
....> I was looping over the fields of a submitted form using the
....> Form.Fieldnames variable, and I noticed that there were missing
....> fieldnames.
....>
....> When I looped over StructKeyList(form), the fieldnames were all there.
....>
....> I couldn't find any commonality among the missing fields except that
....> they contained date values (or empty strings, for omitted date
....> values). Both had been run through the cfform validate=date routine.
....> Or more correctly, both fields had those routines assigned, although
....> values were not required in the fields. I don't know if this had any
....> impact on the missing fields or not, but they were the only ones
....> missing.
....>
....> This was on a server running CFMX 6.1.
....>
....> Has anyone seen this behavior, or have any thoughts on why it might
....> have occurred?
....>
....
....--
....=================================================================
....Ray Champagne - Senior Application Developer
....CrystalVision Web Site Design and Internet Services
....603.433.9559
....www.crystalvision.org
....=================================================================
....
....
....

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213813
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