J
John
Hello.
I have a search form for music albums which among other things I need to
search all the song titles of the song. Normally in a search form I would
have checkboxes the user can use to select whether or not to search a given
field.
In this case it is not practical to have 20 checkboxes (each album can have
up to 20 song titles).
What I would rather do is have a single checkbox labeled "search song
titles" and have all the song title fields hidden and either enabled or
disabled as part of the search depending on the checked state of that check
box.
The hidden fields in question look like this:
<input type="hidden" name="SearchAdd_1" value="1">
<input type="hidden" name="SearchAdd_2" value="1">
etc
etc
all the way to
<input type="hidden" name="SearchAdd_20" value="1">
So if I simply put all those in the search form then it will search those
fields. Great. But how would I give the user the option to toggle them
off or on in one shot?
Thanks.
I have a search form for music albums which among other things I need to
search all the song titles of the song. Normally in a search form I would
have checkboxes the user can use to select whether or not to search a given
field.
In this case it is not practical to have 20 checkboxes (each album can have
up to 20 song titles).
What I would rather do is have a single checkbox labeled "search song
titles" and have all the song title fields hidden and either enabled or
disabled as part of the search depending on the checked state of that check
box.
The hidden fields in question look like this:
<input type="hidden" name="SearchAdd_1" value="1">
<input type="hidden" name="SearchAdd_2" value="1">
etc
etc
all the way to
<input type="hidden" name="SearchAdd_20" value="1">
So if I simply put all those in the search form then it will search those
fields. Great. But how would I give the user the option to toggle them
off or on in one shot?
Thanks.