Re: [Dawna] Custom Search Form for ListViewer
Sure, there's no automatic way to do that but it's possible with some PHP code. Try this:
<select name="category">
<?php
$tablename = $options['tableName'];
$fieldname = 'yourFieldName';
$schema = loadSchema($tablename);
$fieldSchema = $schema[$fieldname];
$fieldOptions = getListOptionsFromSchema($fieldSchema);
foreach ($fieldOptions as $valueAndLabel) {
list($value, $label) = $valueAndLabel;
$encodedValue = htmlspecialchars($value);
$encodedLabel = htmlspecialchars($label);
print "<option value='$encodedValue'>$encodedLabel</option>\n";
}
?>
</select>
Just page that where you want your dropdown list and change the fieldname to match yours and it should work.
For more details, have a look at this thread:
http://www.interactivetools.com/iforum/P59787
Let me know if you have any trouble with that.
Dave Edis - Senior Developer
interactivetools.com