I connected a Repeater to a dataset for school courses and now need to create a search bar, search filters and sort options wout code/corvid

Is this possible?

You’ll see what I have so far, with some notes in the attached screenshot.
Feel free to guide me on select components, but please don’t cause me to follow steps for those select things if I should be starting with something else, first.
If someone can please advise on what is not possible using strictly the editor and no coding (if any).

  1. I would like to allow the user to search the entire dataset with this search box, not just one field. As the note says, I want users to be able to use any of the filter options. I am open to changing the Start Date #dropdown to calendar selectors for users to select a time period. If I can do both, that would be best. If I can only do a dropdown, I would prefer if users can select multiple options, which may require a different design or element type?
  2. I can’t do much with the Search field in my dataset right now, since as you’ll see in one of my other recent posts, my Bookings App is putting service Name as Slug (course subject) name. If you can help with this I would appreciate it.
  3. I’m thinking I need to use a different element type for Subject and Frequency/Length so users can select multiple options from the menu.
  4. I’m wondering if I will need a Search button, or if I can have results load as users make selections.
  5. I will also need help with the Reset button…
  6. I can make another post for Sorting the results after, I just want to make sure I’m building the Search form with the proper measures in place for a Sort feature soon after.

Please use simple language with lots of detail, and where instructions are long, numbered steps as I have done.
A huge thanks in advance to those who take the time to help.

Gian

Hi Gian😄,

This forum is for corvid related content only. If you are not going to use corvid and need more help contact customer care :
https://support.wix.com/en/article/contacting-wix-customer-care-for-support

You can create a dropdown filter and reset button without corvid . You can’t make a search bar to search your dataset without code. If you need to create a search bar ( with corvid ) watch this tutorial.
link: https://www.youtube.com/watch?v=xujaBNElgjw
You can create your dropdown filters the same way. You can also make the search bar and dropdown-filters filter each other. I couldn’t find an article for making a reset button using corvid. But there is probably a way to create a reset button using corvid.
~Hope this helps!~
Arthur :grin:

Thank you Arthur, that’s a great start! You’re right I totally forgot that this site is for Corvid haha.

Did you manage to create your search bar or drop down???:grin:

Hi Arthur, no I had a busy day. Starting my website shift now :smile:

No luck. 2 errors. My dataset is also called #dataset1 .

You need a hashtag for the element id:

let SearchValue = $w('#searchBox').value;

Dataset id needs to be in quotes or ticks.
Use field key (not field name) which starts with a lower case letter (title not Title).

$w('#dataset1').setFilter(wixData.filter().contains('title', SearchValue);

You should also use the onInput() event handler instead of onKeyPress().

You also might be interested in the Search a Database example.

I think it is best for him to create the search bar & dropdown filter the easy way.

So the first error message is gone, but the issue with the second line of issue:

$w('#dataset1').setFilter(wixData.filter().contains('Title', SearchValue);

is the ; at the end, not the capital T in Title. Also, Title is spelled with a capital in my dataset. The error message says “parsing error, unexpected token ;”

Previewing page says:

Error parsing web-module ‘public/pages/u6rma.js’: Unexpected token (10:73) while parsing file: public/pages/u6rma.js

Loading the code for the Browse Services page. To debug this code, open u6rma.js in Developer Tools.

I can’t believe these basic standard features are not yet available on Wix sites in 2020… people have to learn how to code to have a site, even those of us paying a monthly fee. My first month will be spent paying wix for me to learn code - the tutorial shared by Arthur isn’t even from Wix. How do you charge people for sites that don’t have basic search features in 2020 and then not even use that money to properly guide us on how to develop them? I can’t imagine how much lost business as a result of people being discouraged by having to code such basic features. You have a online school and ecommerce templates with not even a basic search bar for repeaters.

How long would it take you guys to make the code for these features I’m trying to add? Are you able to compose the code for me and I can tell you what happens? I can give you any info you would need and add or change whatever I need to. These and ratings stars are the only extra things I need for my site and I don’t even know how long it’s going to take.

We are unable to provide full code solutions. Wix provides many resources to help users learn how to get the most out of Corvid. We encourage users to take advantage of these resources which include video tutorials, full app examples (which can be loaded into the user’s editor), API documentation, and a wealth of articles describing a wide range of topics - from beginner to advance.

You may want to check out the Wix Marketplace - it’s a hub where you can look for Corvid (and other) experts for hire.

You are missing a closing parentheses at the end of the line:

$w('#dataset1').setFilter(wixData.filter().contains('Title', SearchValue));

That’s incredible. We’re not paying to learn to code, we’re paying to quickly and easily build and for you to host and help secure our simple websites. It doesn’t make sense for so many reasons. Why do we need to learn how to build something that we’ll never have to build again? If I run in to issues down the road, I won’t remember anything I learned while building it because I’m not developer, hence why I came to Wix. Its like going for a simple haircut and the hairdresser charges you to teach you how to cut your own hair, or charges you to refer you to another hairdresser who you can pay to proceed straight to the haircut… unbelievable.

I’ll have to come back to this tonight or tomorrow…

Now I’m getting “wixData is not defined.”…

I got it to work… I was missing the import wix data line… it disappeared for some reason. And you were right about the Title being without a capital because you have to spell it the same as the field key not field name, as the tutorial says.

So, did you get the search bar/dropdown filter to work?:grin::wink::laughing: