hi! Trying to connect a repeater to dropdow seach and still getting the same error Cannot read property 'item' of undefined. Can s/o help?

Post your code.

The currentItem value gets set to the default name of an repeater item. Its weird because it works in preview but not live

export function dropdownQty_change(event) {
var currentItem = $w.at(event.context);
var itemName = currentItem( “#txtItemName” ).text;
var quantity = currentItem( “#dropdownQty” ).value;
var itemWeight = currentItem( “#txtItemWeight” ).text;

itemName = $w( "#txtItemName" ).text; 

}

the values should be set to what the changed value is, quantity should be changing on dropdown but it just keeps it at blank, again works perfectly fine on preview but not live

@saffan786 can it be a matter of data sync or collection permissions?

@jonatandor35 The collection shows up just fine its pulled before and I see all its data, its when this function tries to get the values in its repeater scope that it just gets what the original values are, I am also being told that this was working before and not changes have been made to the code, was there a change on corvid? see attached for more details

Just to test I made a change from onChange to on click and I am actually able to print the proper values “Tortilla” instead of “Item Name”

Only problem is I need the onChange event

export function dropdownQty_click(event) {
let currentItem = $w.at(event.context); 
let itemName = currentItem("#txtItemName").text; 
let quantity = currentItem("#dropdownQty").value; 
let itemWeight = currentItem("#txtItemWeight").text;     

console.log(itemName);

  }