cf_multiselect

Click to Download

Description

Outputs a dependable duo of dropdown boxes drawn from a query. By selecting a value from the first list, the second list will change to only display related records. This is done without having to refresh the page!
 

Usage

Useful for creating a dynamic list of categories. You can determine which sub categories are applicable to a top level category.

Attributes

name1 Optional The name of the first dropdown form element
name2 Optional The name of the second dropdown form element
size1 Optional The size of the first dropdown. This will change the menu from a combo box to a select box
size2 Optional The size of the second dropdown. This will change the menu from a combo box to a select box
width1 Optional The width of the first select box
width2 Optional The width of the second select box
emptydisplay1 Optional The default text to display on the top option
emptydisplay2 Optional The default text to appear on the second dropdown before the first level has been selected
emptyvalue1 Optional The default value for the top dropdown item
emptyvalue2 Optional The default value for the second dropdown before the first level has been selected
formname Optional The name of the form that this tag is within. If this attribute is ommitted, it will pick up the first form it comes across on the page
spacercode Optional Any HTML code you want to separate the two dropdown menus
query Required The name of the query to draw the data
display1 Required The text to display in the first dropdown
display2 Required The text to display in the second dropdown
value1 Required The value of the first dropdown
value2 Required The value of the second dropdown
 

Featured Links