 |

ken707
User
Sep 5, 2002, 6:46 AM
Post #1 of 6
(1894 views)
Shortcut
|
|
Search by area (RM)
|
Can't Post
|
|
I would like to create two drop down boxes, One containing cities and the other containing counties. I would like to give the visitor the option of searching by city or county by making a selection in the drop down boxes. How can I do this?
|
|
|  |
 |

chrisl
User
Sep 5, 2002, 9:30 AM
Post #2 of 6
(1886 views)
Shortcut
|
|
Re: [ken707] Search by area (RM)
[In reply to]
|
Can't Post
|
|
Hi, I am a new user and worked on this issue yesterday. Simply copy an existing drop down in the _search_query.html starting with the <tr><td> tag to the </td></tr>, paste it where you want your drop-down and then modify the fields to reflect your search criteria. For example - you have: <tr> <td><font size=2 face="arial"> Type </font></td> <td> <select name="lfield8_keyword"> <option value="">Any <option>Home <option>Condo <option>Townhouse <option>Apartment <option>Mobile Home <option>Lot <option>Acreage <option>Duplex <option>Triplex <option>Farm or Ranch <option>Other </select> </td> </tr> Copy it and paste it where you want the drop-down, then modify it, like: <tr> <td><font size=2 face="arial"> Location</font></td> <td> <select name="lfield3_keyword"> <option value="">Any Location <option>City 1 <option>City 2 <option>City 3 <option>City 4 <option>etc..... </select> </td> </tr> The "lfield3_keyword" is important as it reflects, in this case, the city name filed "lfield3". Give it a try - should work. Chris
|
|
|  |
 |

ken707
User
Sep 24, 2002, 1:25 AM
Post #3 of 6
(1830 views)
Shortcut
|
|
Re: [chrisl] Search by area (RM)
[In reply to]
|
Can't Post
|
|
i tried this
<tr> <td><font face="arial" size=2> City</font></td> <td> <select name="lfield25_keyword" size="1" style="font-family: Arial; font-size: 10pt"> <option selected>Any</option> <option>Benicia</option> <option>Dixon</option> <option>Fairfield</option> <option>Suisun</option> <option>Vacaville</option> <option>Vallejo</option> </select> </td> </tr> <tr> <td><font face="arial" size=2> County</font></td> <td> <select name="lfield24_keyword" size="1" style="font-family: Arial; font-size: 10pt"> <option selected>Any</option> <option>Napa County </option> <option>Solano County</option> </select> </td> </tr> but every time i place it in the search query page it does not show any results I'm not sure if it has to do with the fields, any ideas?
|
|
|  |
 |

chrisl
User
Sep 24, 2002, 10:51 AM
Post #4 of 6
(1822 views)
Shortcut
|
|
Re: [ken707] Search by area (RM)
[In reply to]
|
Can't Post
|
|
<tr> <td><font face="arial" size=2> City</font></td> <td> <select name="lfield25_keyword"> <option value="">Any <option>Benicia <option>Dixon <option>Fairfield <option>Suisun <option>Vacaville <option>Vallejo </select> </td> </tr> Assuming that you have developed a new field - "lfield25" - in the listing template and have uploaded listings with that field completed (you may wish to review that procedure), this should work - the key being the new field "lfield25". As noted I do not present myself as an expert in this so you may wish to run it by tech.
|
|
|  |
 |

Damon
Staff
/ Moderator

Sep 24, 2002, 11:21 AM
Post #5 of 6
(1822 views)
Shortcut
|
|
Re: [ken707] Search by area (RM)
[In reply to]
|
Can't Post
|
|
Hi Ken, Your almost there. :) Replace <option selected>Any</option> with <option value="">Any </option> and that should make search work correctly. If you have any other questions, let me know. Cheers Damon Edis interactivetools.com
|
|
|  |
 |

ken707
User
Sep 25, 2002, 11:13 PM
Post #6 of 6
(1805 views)
Shortcut
|
|
Re: [Damon] Search by area (RM)
[In reply to]
|
Can't Post
|
|
Excellent, that was it. Thanks
|
|
|  |
|