Search function help please

https://www.practiceexchange.co.uk/

Hi there

Please can someone help me with a search function. I cant get the ‘course provider’ search function to work on this page https://www.practiceexchange.co.uk/courses

Thank you very much :slight_smile:

The ‘onClick’ event for ‘#button13’ is disabled. Click on it and copy the relevant function to the created function’s content and it will work.

Great thank you :slight_smile:

Is it possible to use the ‘key word’ search function on this page https://www.practiceexchange.co.uk/courses to search in the ‘title’ column and ‘course providers’ as well? So I could use one search button to search 2 columns? thanks :slight_smile:

Yes it’s possible. you should use ‘or()’ API and execute the ‘contains()’ method twice.
You can see an example for ‘or()’ usage here: https://www.wix.com/code/reference/wix-data.WixDataQuery.html#or

Good luck!