Filtering a gallery with a search bar from both text and boolean fields in a database

Hi,

I have used code to filter a gallery from ‘text’ type fields in the database with a search bar. This works fine. However, I am struggling to filter the gallery from a ‘boolean’ type field as well as a text type field.

I would appreciate any feedback.

Thanks

If you’re using code, that shouldn’t be a problem. See:
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#getCurrentItem

https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#setFilter

Thank you for your reply.

I am struggling to fit getCurrentItem into the code. I would appreciate if you could explain further.

At the moment, when users type in a key word, this is associated with a text field in the database, and the correct results are filtered and displayed on the gallery. I have done this without using getCurrentItem.

I would like to filter the gallery based on the boolean field too, but I have been unable to incorporate this into my code at the moment.

Thanks