Home
Username:
Password:
Adobe ColdFusion 8 Tutorials

ColdFusion Forms / Fields Not Submitted




Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com’s entire library of video tutorials.


Learn More

Subtitles of the Movie

Now we're going to take a look at some issues you can have when creating your forms and some of the reasons why we want to make sure that we add Form Validation to your forms and there are a variety of ways you can validate your forms and we will take a look at those moving forward. But what I'm going to do now is simply take my sumaForm and my sumaFormProcessing page, this is the page that processes my sumaForm information and I'm going to put sumaForm into the browser and I'm going to fill it out using this Populate Form Fields, but I am going to uncheck the Checkboxes. We will address that - actually, let me do this. Let me populate it myself so you can see a couple of different things that will happen and I will say and I'll be done in just a second. OK, I'm not going to fill anything out in this bottom section. I'm going to click Contact SUMA and you'll see part of my information showed up fine, but I now have an issue with my Customer area, so what is the Customer area? If I look back it's a Radio Button and if I fix this issue I'm going to have a Check Box issue. OK. Set Customer Yes or No, now I will have a Check Box issue of Department. There are three FormFields, technically four, that if the user does not submit them or do some kind of an action on them it will cause an error, and what's happened is I did not fill out that information. I filled out the TextFields, not the Comments. This doesn't cause an error, but any time you have a Radio Button that has not been checked by the user, Checkboxes that have not been checked by the user, or multiple select, in other words multiple drop-downs, this only allows one choice but if we allowed multiple we may have a problem there as well. So let me go ahead and deselect these. We'll use Department as our example. If I click Contact SUMA and I scroll down to the bottom of the page, because I have Debugging turned On, you'll see a FormFields area and you can see my FormFields are populated but I do not have one called Department. I have one called Comments, even though I didn't plug in any comments, but I do not have Department and that is what's triggering the error. So we're going to take a look at Form Field Validation. When you create your forms you have to pay particular attention to working with Radio Buttons. If the user doesn't check one it's a problem. Checkboxes, same issue. Multiple Select, this is not a multiple select, but if I allowed the user to choose multiple subjects it would be. Any of those three - if they are not clicked or chosen by the user those form fields don't exist. So if you are trying to do something with them you will get an error and this is just something to keep in mind. We will talk about this in the Form Validation section and how to take care of it. But for now, just be aware Radio Buttons, Checkboxes, Multiple Select and also even a Submit button, if you don't click that Submit button that form field doesn't exist either. So we'll work with this moving forward and show you how to deal with it.

Tutorial Information

Course: Adobe ColdFusion 8
Author: Candyce Mairs
SKU: 34093
ISBN: 1-936334-05-4
Release Date: 2010-02-26
Duration: 8 hrs / 112 lessons
Work Files: Yes
Captions: Available on CD and Online University
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 98,729 Video Tutorials (23,265 free)
  • Video Available as Flash or QuickTime
  • Over 1026 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available