I’m trying to collapse various elements in a repeater that are not assigned. I don’t seem to be able to test the label of one of my buttons - it appears to just be holding the original repeater definition within this code. Since the repeater is “ready” why can’t I see the dynamically generated labels?
Note that the button label is obtained from a reference dataset access from within my repeater source dataset.
That is, within my itemData for my repeater, this button label comes from another reference database if that is any is
Here’s the code I have been working with which seems to work for testing other repeater elements, but I don’t seem to be able to reference and test the button element which is why have been trying to just print out the value. If you could let me know how to print out the value of an instantiated button, perhaps I could make progress.
export function repeater1_itemReady($w, itemData, index) {
$w( “#repeater1” ).onItemReady(() =>{
//console.log("button 6 value is ", $w(‘#button6’).label);
if (!itemData.description) {
$w( “#text85” ).collapse();
$w( “#box5” ).collapse();
}
Thank you!