Adobe 38040334 - Dreamweaver CS3 User Manual page 617

Pc
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

The data source should contain textual information. If no data sources appear in the list, or if the available data
sources don't meet your needs, click the Plus (+) button to define a new data source.
See also
"Data sources for web applications" on page 531
Dynamically preselect an HTML check box
You can let the server decide whether to select a check box when the form is displayed in a browser.
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 check boxes. Ideally, the source of content should contain Boolean data,
such as Yes/No or true/false.
Note: For ASP.NET pages, you must use the ASP.NET CheckBox control.
Select a check box form object on your page.
1
2
In the Property inspector, click the Dynamic button.
Complete the Dynamic CheckBox dialog box, and click OK:
3
Click the lightning bolt icon beside the Check If box and select the field from the list of data sources.
The data source must contain Boolean data such as
list, or if the available data sources don't meet your needs, click the Plus (+) button to define a new data source.
In the Equal To box, enter the value the field must have for the check box to appear selected.
For example, for the check box to appear selected when a specific field in a record has a value of
the Equal To box.
Note: This value is also returned to the server if the user clicks the form's Submit button.
Dynamically preselect an HTML radio button
Dynamically preselect an HTML radio button when a record is displayed in the HTML form in a browser.
Before you begin, you must create the form in a ColdFusion, PHP, ASP, or JSP page, and insert at least one group of
HTML radio buttons (Insert > Form > Radio Group). You must also define a recordset or other source of dynamic
content for the radio buttons. Ideally, the source of content should contain Boolean data, such as Yes/No or true/false.
Note: For ASP.NET pages, you must use the ASP.NET RadioButtonList control.
In Design view, select a radio button in the radio group.
1
In the Property inspector, click the Dynamic button.
2
Complete the Dynamic Radio Group dialog box, and click OK.
3
Set the Dynamic Radio Group dialog box options
In the Radio Button Group pop-up menu, select a form and radio button group in the page.
1
The Radio Button Value box displays the values of all radio buttons in the group.
2
Select a value to dynamically preselect from the list of values. This value is displayed in the Value box.
Click the lightning bolt icon beside the Select Value Equal To box and select a recordset that contains possible
3
checked values for the radio buttons in the group.
and
, or
and
Yes
No
true
false
September 4, 2007
DREAMWEAVER CS3
User Guide
. If no data sources appear in the
, enter
in
Yes
Yes
610

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents