Managing Select Lists and Options

Summary: Creating dropdown menus, including specialized Time and Country selectors.

To create a standard select list, options must be added prior to creating the select element:

  1. Add Option: $form->addOption($selectName, $value, $txt, $groupName, $attr);

  2. Create Select: $form->addSelect($selectName, $label, $attr, $displayGroupLabels);

Specialized Selectors: