On a legacy application that I maintain, I have seen a rash of errors recently that are new. They are all in regards to form fields missing on a form action page. The things that make this one different is that:
- The fields in question are empty text fields, not unchecked radio buttons or checkboxes.
- The browser type of all these errors in Google Chrome
Now, while the fix is the same for all of these issues (CFPARAM the form fields), I was wondering if others have been seeing this with Chrome at all, and if there's any insights as to why Chrome seems to not want to pass along empty text fields, like every other browser out there does. I have not played with Chrome at all, and our applications do not officially support that browser at this time, so I can't spend much time at all investigating these errors in light of that. So I am hoping that some of y'all might have some information you would be willing to share?
#1 by David Boyer on 2/8/10 - 10:19 AM
#2 by David Boyer on 2/8/10 - 10:23 AM
http://www.w3.org/TR/html401/interact/forms.html#s...
#3 by Rob Barthle on 2/8/10 - 10:52 AM
#4 by Peter Boughton on 2/8/10 - 2:10 PM
I get empty string passed with 4.0.249.78 (36714) for all these:
<input type="text" name="one" value="" />
<input type="text" name="two" />
<input name="three" />
#5 by John Gag on 2/8/10 - 3:22 PM
#6 by Rob Barthle on 2/8/10 - 4:07 PM
The bottom line (to me) is that there is a one-size-fits-all solution. No matter the browser, keeping on top of the server side validation will catch any unexpected behavior, forcing users to use the system the way we want them to. CFPARAM is just one of those tools.
What I find interesting and/or frustrating (depending on my mood) is how the browsers can choose to do things their own way. IE is just the easiest target in this regards, but they're seemingly not alone in this facet.
#7 by David Boyer on 2/9/10 - 5:34 AM
#8 by Chris on 3/17/10 - 12:49 AM
I just ran into a situation where I needed to have their initial selections persist to the final recording of the data. I can print and see the form value on the screen (in this case it is a list of values from a group of checkboxes ie: 1,3,4,6,etc) but the hidden form field is empty. I thought I was going nuts until I found this thread. Any ideas or work around really appreciated. I am using Chrome 4.0.249.89 (38071).
Good thing is that the client will be using IE exclusively(argh...did I really say good thing).
Any help or advice greatly appreciated. Rants are welcome too I suppose ;-)