Dear Support
When I action the 'Reset' button on the 'Advanced Search' page, all fields are correctly cleared on the form including a set of radio buttons (field name 'TEST_CASE_STATUS').
If I then enter data to perform a new advanced search, selecting NO radio buttons, 'TEST_CASE_STATUS' radio buttons remain unselected (as expected having reset the value) but when actioning the search, the previous selection is included!
The actioned search criteria therefore becomes invalid
If I return to the 'Advanced Search' page, I see the original 'TEST_CASE_STATUS' radio button selection is now displayed althought I'd reset these.
Do you have any idea where the reset action may be failing/how I can force this to be cleared?
Thanks
Chris
======================
From file: STATUS_search.asp
======================
<!-- TEST_CASE_STATUS -->
<tr class="shade">
<td class=fieldname><%=Label("TEST_CASESTATUS")%></td>
<td align=center><input type=checkbox name="not<%=row%>" <%=iif(Session("Not" & row & "" & strTableName)<>"","checked","")%>></td>
<input type="hidden" id="FieldName" name="FieldName" value="TEST_CASE_STATUS">
<input type=hidden name=NeedQuotes<%= BuildFieldName("TEST_CASE_STATUS") %> value="<%= Request.QueryString("NeedQuotes" & BuildFieldName("TEST_CASE_STATUS")) %>">
<td>
<% call WriteSearchOptions(GetEditFormat("TEST_CASESTATUS"), Session("SearchOption" & strTableName & "_TEST_CASE_STATUS"), False) %>
</td>
<td width=270>
<!--<input type=text size=20 name=SearchFor>-->
<% Response.Write BuildSearchControl("TEST_CASESTATUS", Session("SearchFor1" & strTableName & "_TEST_CASE_STATUS"),"") %>
</td>
<td width=270>
<span id="sp_TEST_CASE_STATUS">
<%
sFormat = GetEditFormat("TEST_CASE_STATUS")
if sFormat="" or sFormat = EDIT_FORMAT_HIDDEN or sFormat = EDIT_FORMAT_READONLY or sFormat=EDIT_FORMAT_TEXT_AREA or sFormat=EDIT_FORMAT_PASSWORD then sFormat=EDIT_FORMAT_TEXT_FIELD
if sFormat=EDIT_FORMAT_TEXT_FIELD or sFormat=EDIT_FORMAT_DATE then
Response.Write BuildSearchControl("TEST_CASESTATUS", Session("SearchFor2" & strTableName & "_TEST_CASE_STATUS"),"_999")
end if
%>
</span>
</td>
</tr>
........
.....
...
.
function resetValues()
{
e = document.forms[0].elements;
for (i=0;i<e.length;i++)
{
if (e[i].name!='andor' && e[i].className!='button' && e[i].type!='hidden')
{
if(e[i].type=='select-one')
e[i].selectedIndex=0;
else if(e[i].type=='select-multiple')
{
var j;
for(j=0;j<e[i].options.length;j++)
e[i].options[j].selected=false;
}
else if(e[i].type=='checkbox' || e[i].type=='radio')
e[i].checked=false;
else
e[i].value = '';
}
}
ShowHideControls();
}