jeudi 13 août 2020

How to get repeater data using checkbox in WIX?

I'm showing repeater data from database.Data is showing perfectly in repeater .

Now I want to select Checkbox on one or more repeater but not working.

enter image description here

When I'm checked checkbox it should show "Air Jordan".But it is showing "Hydra".Also index value are not showing.

enter image description here

This is my code

   export function checkbox1_change(event) {
 // Add your code for this event here: 

   let myid=$w('#text32').text;
  console.log(myid);
  $w("#repeater2").onItemReady( ($item, itemData, index) => {   

 if ($w("#checkbox1").checked) {
   console.log("index:"+index);
   } else {
   console.log("no Index");
   }   

   } );



Aucun commentaire:

Enregistrer un commentaire