beautypg.com

Make existing html form menus dynamic, Display dynamic content in html text fields, Set the dynamic text field dialog box options – Adobe Dreamweaver CC 2015 User Manual

Page 635: Dynamically preselect an html check box

background image

628

Dynamic sites, pages and web forms

Last updated 6/3/2015

Make existing HTML form menus dynamic

1

In Design view, select the list/menu form object.

2

In Property inspector, click the Dynamic button.

3

Complete the dialog box, and click OK.

Display dynamic content in HTML text fields

You can display dynamic content in HTML text fields when the form is viewed in a browser.

Before you begin, you must create the form in a ColdFusion, PHP, or ASP page, and you must define a recordset or
other source of dynamic content for the text field.

1

Select the text field in the HTML form on your page.

2

In the Property inspector, click the lightning bolt icon beside the Init Val box to display the Dynamic Data dialog
box.

3

Select the recordset column that will supply a value to the text field, and then click OK.

Set the Dynamic Text Field dialog box options

1

Select the text field to make dynamic from the Text Field pop-up menu.

2

Click the lightning bolt icon beside the Set Value To box, select a data source from the list of data sources, and click
OK.

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.

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, or ASP 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.

1

Select a check box form object on your page.

2

In the Property inspector, click the Dynamic button.

3

Complete the Dynamic CheckBox dialog box, and click OK:

• 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 Yes and No, or true and false. 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.

• 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 Yes, enter Yes in
the Equal To box.

Note: This value is also returned to the server if the user clicks the form’s Submit button.