Hey everyone. I do not know how to code and need some help for a basic change in the dataset column settings.
this is the website, the available button filter the cars in the database, when clicked only showing the available ones:
![](https://static.wixstatic.com/media/6c0c57_ea59eabd60dd45c38a1700be5c65853e~mv2.png/v1/fill/w_49,h_17,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/6c0c57_ea59eabd60dd45c38a1700be5c65853e~mv2.png)
this is how the dataset looks like:
![](https://static.wixstatic.com/media/6c0c57_d9a519e58d75471c9233015198689658~mv2.png/v1/fill/w_49,h_21,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/6c0c57_d9a519e58d75471c9233015198689658~mv2.png)
this is how the code looks like:
import wixData from 'wix-data';
$w.onReady(function () {
$w('#selectionTags1').onChange(() => {
const selectedTag = $w('#selectionTags1').value;
let filter = wixData.filter();
if (selectedTag.length > 0) {
filter = filter.hasSome("available", selectedTag);
}
$w('#dataset1').setFilter(filter);
})
});
but I want to change thee Available column to Boolean instead of Text:
![](https://static.wixstatic.com/media/6c0c57_44e4f03bf9104d06934b8a2280b0f93d~mv2.png/v1/fill/w_67,h_78,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/6c0c57_44e4f03bf9104d06934b8a2280b0f93d~mv2.png)
I know that I have to change the Code but I do not know how... could anyone help me?
Thank youuuu :)
I think you can do this without any code, just by setting the filter on the Dataset in the editor.