text: I follow the instruction on this video, and added 4 dropdowns and a search button to filter dataset connected to a repeater.
  Once I use one of the dropdowns and press search button, it filters data properly , however…
  PROBLEM
  The repeater remains as it is filtered.
  When I do a new search using any of the dropdowns, it doesn’t seem to filter “all data” but it filters “only what remains with previous search”.
  I am making a job search page for jobseekers, so I expect users to do a new search again and again using different categories (ex. search by location, search by job type, search by industry) .
  The code I use in my website for filter function.
  import wixData from 'wix-data'; export function button18_click(event, $w) { $w("#dataset1").setFilter( wixData.filter() .contains("JobType", $w('#dropdown1').value) .contains("Industry1", $w('#dropdown2').value) .contains("Location",$w('#dropdown3').value) .contains("Salary",$w('#dropdown4').value)) .then((results) => { console.log("Dataset is now filtered"); $w("#repeater1").data = results.items; }).catch((err) => { console.log(err); $w("#repeater1").expand(); }) }
  So, I want to add "Refresh Button" in the page, so that users can start fresh search. I already checked some existing forum on refresh function, but it was too difficult for me to understand... because, I'm not a coder. I only code when I need to add a function on my website. I usually just search copy and paste code.
  Please help!
  [@akawata] The way you remove a filter and reload all items in the repeater is to give the setFilter function an empty filter like this: $w(“#dataset1”).setFilter(wixData.filter()); Et voilà!
  Wow... it's that simply...
  $w("#dataset1").setFilter(wixData.filter());
  This made my "clear" button works exactly the way I want!!!
  Thank you sooooo much, Steven!
  Then, I'm facing another problem...(T_T)
  Problem 1:
  I have four dropdowns.
  The very first search, filter works fine; if a user use only one dropdown, it filters the repeater properly. But, after pressing "clear" button, then search again, it no longer works like that; Nothing shows on the repeater, unless all four dropdowns choices matches...
  Problem 2:
  It would be nice if a user press "clear" button, all four dropdown boxes return to default placeholder text (i.e. a user search for "IT job", then press "clear", the dropdown returns to "search by Industry" instead of remain as "IT job".)
  Thank you in advance.
  Dear Steven Cropper
  Thank you so much for the message. (I was able to read your message that came into my mail box, but I can't find it in this forum...)
  For now, I give up on the 4 dropdowns.
  I will use a simple search box that works just fine.
  I rather want you to help me on this one.
  When there is no matching data in the dataset after a user searches, I want to show "No result" message on the screen.
  I wish the code for this is as simple as the previous one...
  Thank you in advance.
  @akawata
  Following on from Steve's great answer.
  If you want to filter a repeater with dropdowns, then have a watch of this tutorial.
  Otherwise, have a look through these tutorials.
  @akawata
  Regarding your problems..
  1. How to reset the dropdowns to default values:
  2. How to show the 'No Results' message on screen - add a normal text element and name it something like textNoResults. Then, in the section of the .then() function write a little bit of code to display that message is no results have been found like so:
  Good luck!
  Tiaan
  Oh! Thanks Tiaan!
  1. How to reset the dropdowns to default values:
  This works sooo perfectly. I just copied and pasted, and it just worked!
  2. How to show the 'No Results' message on screen:
  I received errors when I copied and pasted the one you gave me...
  I don't know how to solve them...
  Please help.
  Thank you.
  @akawata There is a minor issue with the Forum code panel that posts the wrong code sometimes. The code that reads:
  should read
  Cheers
  @Steven Cropper Thank you so much Steven!
  $w("repeater") works fine.
  However, then, it shows another error at the very end of the line...
  I feel like I am almost there but...
  Hope anyone can still help me on this..