Hello,
I create a boolean value in ma database and I would like to know how can I display a badge in repeater when then then boolean is check in the database ?
thanks for your help
import wixUsers from 'wix-users';
import wixData from 'wix-data';
$w.onReady(function () {
wixData("derniereSeance") //its my database nam
.find()
.then( (results) => {
let item = results.items[0];
let bw_value = item.bw; //bw is my boolean variable in derniereSeance database
if (bw_value = "true") { //if BW is check in the database the Imagevector 3 is hidden
vectorImage3.hidden();
}
} );
I've updated my code, with the name of my repeater and vectorImage.
thanks
Where is your code?
This forum is a code related one!
If you are using the normal Wix-Elements without using any code, then you are wrong here.
You should better contact Wi-Customer-Care... you will find the right link here...
https://russian-dima.wixsite.com/meinewebsite/blank-5