Search bar

Hi there, i managed to create a search bar the problem i still didn’t get how to make elements from the searched table to click to a particular page, is that possible? Thanks.

1 Like

Very interested in this topic. I’m also requesting this feature here: https://support.wix.com/en/article/request-site-search-box

Hey,
Which search bar do you use? Have you added a search bar from the app market or created one of your own using code? Can you please send us a screenshot of the page so that we can better understand the use case?

Thanks,
Tal.

I would like to create search bar for store products so i can link for example the result on the table to the actual product, also i have checked this video https://www.youtube.com/watch?v=Hx7_8-lRsW0 , bu i really don’t understand the logic, seams everything too complex.
One more question is do we need to wait for the a Wix Store update to be able to create reviews on the products? Thanks.

Hi,
Currently there’s no integration of Wix Code with Wix Stores. You can submit it as a feature request here .

Best,
Tal.

Hi There

I think WIX has a great platform but not having a search bar, VERY DISAPPOINTING.

Create your own “search bar” with an endless variety of options: How to Use Code to Let Your Users Search a Collection

We moved away from wordpress to wix because we are not developers and do not want to call one every time we want to change something… I feel its high risk for us to do code .
Cant wix make the search bar as standard feature as I do belief most website require a search bar.

Adrian,

You have a good point - make a Feature Request , and be sure to build a case for it. Wix listens to our users and will give it careful consideration.

Done, thank you for your assistance Yisrael

Hello Yisrael,
A search bar for the entire site(forum blog,site,collections) using wix code is also a good and highly required feature.!!!. It will replaces some 3rd party wix apps but it will help lot of people. Thanks.

Hi Nithin,

Make sure you make these comments on Adrian’s post in the Feature Request forum.

Yisrael

Hi Yisrael,
Done …

Hi Yisrael.

May i please ask a unrelated question?

Adrian, of course - doesn’t mean I’ll answer :wink:

Seriously, ask away, but I’d suggest a new post so others can find/read/learn.

May 28, 2018 to now, The problem has not been resolved!!!

Coding a search bar with 2 filters

Hi guys, so i’m starting this message like most people and saying i know nothing about coding.
we are trying to filter a business listing search with 2 categories the first being a general search and the second by location.

Now we have managed to use a simple code to achieve this, but the only problem is it displays the results for both searches, for example, if
Searchbar 1 searches = Media
Searchbar 2 searches = South Africa

It shows all the media companies regardless of the location as well as it showing everything to do with South Africa regardless if its related to media.

We need it to show only Media companies that are in South Africa, if that makes sense.

Our Code looks as follows:
import wixData from ‘wix-data’ ; $w.onReady( function () { // TODO: write your page related code here… }); export function button26_click(event) { let SearchValue = $w( " #input2 " ).value; $w( " #teamDataset " ).setFilter(wixData.filter().contains( ‘title’ , SearchValue) .or(wixData.filter().contains( ‘sector’ , SearchValue)) .or (wixData.filter().contains( ‘shortdiscription’ , SearchValue))); let SearchValue2 = $w( " #input1 " ).value; $w( " #teamDataset " ).setFilter(wixData.filter().contains( ‘location’ , SearchValue2)); }

this code is great and simple for us beginners to understand, so if we could just add one line of code that will help us achive our goal as a dual search that would be great.

When submitting a post, please make sure to follow these guidelines . Your code should be formatted and inside of a code block to make it easier to read.

Also, please make a new post for your issue (instead of commenting on an old thread) so that someone in the community can offer a solution.

To learn about programming with Corvid, read the following articles that will help you start working with Corvid: