
1195
Handling Server Behaviors
34
To link a drop-down list to dynamic data, follow these steps:
1. Insert a list/menu form element on a dynamic page with a recordset.
2. If you have more than one list/menu on the page, select the one you want to convert.
3. From the Server Behaviors panel, choose Dynamic Form Elements ➪ Dynamic List/Menu.
The Dynamic List/Menu dialog box, shown in Figure 34-18, is displayed.
FIGURE 34-18
Lists give the user a series of items from which to choose.
4. Verify that the desired drop-down list is displayed in the Menu list.
5. In the Static Options box, add any nondynamic items you want to the top of the list menu.
This could be something as simple as a label for the list menu or as complicated as a full
URL with query strings for search pages.
6. Choose the recordset you want to work with from the Options From Recordset list.
7. Choose the field from your data source containing the items that you want displayed to the
user from the Labels list.
8. Choose the field from your data source containing the items you want submitted by the
user from the Values list.
9. To preselect an item, enter its value in the Select Value Equal To field or use the lightning
bolt icon to choose a value from the established data sources.
10. Click OK when you’re finished.
For more information on the Dynamic List/Menu server behavior, see Chapter 23.