• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Forms > Disabling Form Controls

Disabling Form Controls

One important rule of effective user interface design is “don’t let them do anything impossible.” For example, don’t let the visitor submit a form until all of the questions have been answered.

In this example, we’ll look at how to disable form elements, including the Submit button, until the visitor has checked a box agreeing to the terms of service (Figure 8.26). Once that box is checked the rest of the form is then made available (Figure 8.27).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint