Dynamically preselecting HTML checkboxes

Dynamically preselecting HTML checkboxes

You can let the server decide whether to select a checkbox when the form is displayed in a browser.

For ASP.NET pages, you must use the ASP.NET CheckBox control. For more information, see Dynamically preselecting ASP.NET CheckBox controls.

Before you begin, you must create the form in a ColdFusion, PHP, ASP, or JSP page, and you must define a recordset or other source of dynamic content for the checkboxes. For more information, see Defining a recordset. Ideally, the source of content should contain Boolean data, such as Yes/No or true/false.

To dynamically preselect an HTML checkbox:

  1. Select a checkbox form object on your page.
  2. In the Property inspector, click the Dynamic button.

    The Dynamic CheckBox dialog box appears.

    This is a picture of the feature being described.

  3. Complete the dialog box and click OK.

    For instructions, see Setting the Dynamic CheckBox dialog box options.

The checkbox will appear selected or not selected, depending on the data when the form is viewed in a browser.



Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Defining Sources of Dynamic Content
Developing Applications Rapidly
 
ASPTreeView.com
 
Evaluation has ЛПДexpired.
Info...