How do I create search for multiple fields in dataset?


function here_FUNKCTION_NAME() {  
wixData.query("Nam_of_YOUR_wished_DATABASE")
  .contains("therapy", $w('#dropdown1').value)
  .or(wixData.query("Nam_of_YOUR_wished_DATABASE")
      .contains("therapyType2", $w('#dropdown1').value)
  )
  .or(wixData.query("Nam_of_YOUR_wished_DATABASE")
      .contains("therapyType3", $w('#dropdown1').value)
  )
  .find()
  .then(res => {
    let items = res.items
   console.log(res)
   console.log (items)
  }); 
}

And you will still need a TRIGGER which will call/start this function (for example a press on a button, or a change-event in a dropdown, or what ever.

exportfunction dropdown1(event) {here_FUNKCTION_NAME()}

And of course you need to import the relevant API… (to the VERY TOP of the CODE)

import wixData from"wix-data";

I did not test it, but should work theoreticaly.
You will find the results in CONSOLE in the PREVIEW-MODE or when pressing F-12 in your google-chrome-browser and switching to CONSOLE-section.

EDIT: And by the way, this solution does not use any dataset.