# Toggle Search Bar between 'Location' and 'Name'

**URL:** <https://community.elfsight.com/t/toggle-search-bar-between-location-and-name/109826>\
**Category:** Google Maps\
**Tags:** Gathering-Feedback\
**Created:** [March 27, 2025, 10:59pm UTC](https://community.elfsight.com/t/toggle-search-bar-between-location-and-name/109826 "2025-03-27T22:59:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Yam](https://avatars.discourse-cdn.com/v4/letter/p/e79b87/32.png) [@Patrick\_Yam](https://community.elfsight.com/u/Patrick_Yam)\
**Post date:** [March 27, 2025, 10:59pm UTC](https://community.elfsight.com/t/toggle-search-bar-between-location-and-name/109826/1 "2025-03-27T22:59:15Z")

</div>

I have multiple businesses on my Google Maps in different locations so it would be great if a user can toggle between the ‘Location’ and ‘Name’ to give them the option if they’re looking for businesses in a particular location or specific businesses.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [March 28, 2025, 6:09pm UTC](https://community.elfsight.com/t/toggle-search-bar-between-location-and-name/109826/2 "2025-03-28T18:09:28Z")

</div>

Hi there, @Patrick_Yam 👋

The search by business name also works, but you don’t like that a blue point appears instead of the red marker, am I right?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/8/1/81476eb5f8ff722cceb24493902c5fe3df56741e.png)

---

<div class="post-metadata">

**Author:** ![Patrick\_Yam](https://avatars.discourse-cdn.com/v4/letter/p/e79b87/32.png) [@Patrick\_Yam](https://community.elfsight.com/u/Patrick_Yam)\
**Post date:** [March 28, 2025, 9:48pm UTC](https://community.elfsight.com/t/toggle-search-bar-between-location-and-name/109826/3 "2025-03-28T21:48:35Z")

</div>

Hi Max, what I mean is that users can’t choose to search for either name or location. It must be set prior to embedding into my site.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [March 31, 2025, 3:56pm UTC](https://community.elfsight.com/t/toggle-search-bar-between-location-and-name/109826/4 "2025-03-31T15:56:53Z")

</div>

Just to clear things up: you’d like to have map, where you don’t need to add the locations in the settings and users should search locations globally, but not from the list, right?

---

<div class="post-metadata">

**Author:** ![Patrick\_Yam](https://avatars.discourse-cdn.com/v4/letter/p/e79b87/32.png) [@Patrick\_Yam](https://community.elfsight.com/u/Patrick_Yam)\
**Post date:** [April 1, 2025, 5:30am UTC](https://community.elfsight.com/t/toggle-search-bar-between-location-and-name/109826/5 "2025-04-01T05:30:13Z")

</div>

No, Max.

You can only type a location in the search field as that is what I set up in the App before publishing. Search by Location.

I can’t type a name in to find a business unless I select Search by Name.

I can only search by one, or the other, not both unless there is a toggle switch between the Search by Location and Search by Name, which this App doesn’t have.

Hope that makes sense.

Pat

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [April 2, 2025, 12:39pm UTC](https://community.elfsight.com/t/toggle-search-bar-between-location-and-name/109826/8 "2025-04-02T12:39:35Z")

</div>

Ah, got it, sorry for misunderstanding!

This is a nice idea, and we’ll try to consider it in the future, especially if more users upvote it 🙂
