Hi guys,
I have a form which contains a simple keyword text field search, just follows the documentation on the site, here is the main exerpt
{exp:search:advanced_form result_page="search/results"}
<table cellpadding='4' cellspacing='6' border='0' width='100%'>
<tr>
<td>
<fieldset class="fieldset">
<legend>{lang:search_by_keyword}</legend>
<input type="text" class="input" maxlength="100" size="40" name="keywords" />
</fieldset>
</td>
</tr>
</table>
<div class='searchSubmit'>
<input type='submit' value='Search' class='submit' />
</div>
{/exp:search:advanced_form}Code works fine but I now want to replace the text field with a dynamic dropdown of people who work for a company. The options in the dropdown are driven by channel entries
{exp:search:advanced_form result_page="search/results"}
<table cellpadding='4' cellspacing='6' border='0' width='100%'>
<tr>
<td>
<fieldset class="fieldset">
<div class="default">
<select id="search4">
<option>By Name</option>
{exp:channel:entries channel="people" orderby="title" sort="asc" validate="true" dynamic="no"}
<option value="{title}"><a href="http://{page_uri}">{title}</a></option>
{/exp:channel:entries}
</select>
</div>
</fieldset>
</td>
</tr>
</table>
<div class='searchSubmit'>
<input type='submit' value='Search' class='submit' />
</div>
{/exp:search:advanced_form}The dropdown is populated with the list of people but when you try search, you get an error stating
You did not submit a search term
Any suggestions as to how I need to tweak this code to allow me submit a valid search for the person selected from the dropdown?
Thanks
Aidan