This topic is locked

Getting rid of the 'contains, equals, etc.' dropdown box?

2/21/2008 1:17:22 AM
ASPRunnerPro General questions
H
Hylian author

Hi,
Is it possible in ASPRunnerPro 5.1 to have a functional Advanced Search page without the "contains, equals, etc." box for any of the fields? What I want to do is display all of my fields, and somehow have each field already set for a particular option... for example, Field #1 will always search "contains"... Field #2 will always search "greater than"... Field #3 will always search "less than or equal to", etc... and, like I said, I want the dropdown boxes for "contains, equals, etc." to not be displayed. Is this possible? (This was a little hard for me to explain; I hope it makes sense.)
Thanks a lot for your help.

J
Jane 2/21/2008

Hi,
you can do it editing generated ..._search.asp file manually.

See my changes in Bold:

...

options=options & "<OPTION VALUE=""Equals"" selected>" & "Equals" & "</option>"

...

searchtype = "<SELECT style=""display:none"" ID=""SearchOption"" NAME=""asearchopt_FieldName"" SIZE=1 onChange=""return ShowHideControls();"">"

searchtype = searchtype & options

searchtype = searchtype & "</SELECT>"

smarty.Add "searchtype_FieldName",searchtype

...



where FieldName is your actual field name.

H
Hylian author 2/25/2008

Thanks a lot for your help; that was exactly what I needed.