Hi,
i'm trying to insert data from repeater2 to repeater1 textInput #product1
now my result is that when i clicking #container1 item the item name is insert data to all items in repeater2
my code for now:
var product1click=false var product2click=false export function button1_click(event) { $w("#repeater1").onItemReady( ($w, itemData, index) => { if(event.context.itemId===itemData['_id']){ $w("#product1").onClick( () => { product1click=true product2click=false }); $w("#product2").onClick( () => { product1click=false product2click=true }); } }); } export function repeater1_itemReady($item, itemData, index) { $w("#repeater2").forEachItem(($item, itemData, index) => { $item('#container2').onDblClick((event,$w) => { if (product1click===true) { $w('#product1').value = itemData.name;}
if (product2click===true) { $w('#product2').value = itemData.name;}
}); }); how can i insert from #repeater2 item name to #repeater1 #product1 text input?
Thanks!!!
You're using $w instead of $item