Hello guys
I've checked many topics on how to handle action button in a Repeating section, but it seems i just can't figure it out T_T
Example : I have repeating sections for bottles. In each section we have checkboxes, representing the remaining water. I have an "emptyBottle " action button to uncheck all chackboxes, all at once, to save some time. Here's the code so far, with only 2 checkboxes for convenience purposes ^^" :
on("clicked:repeating_bottles:emptyBottle", function(eventInfo)
{
const rowid = eventInfo.sourceAttribute.split('_')[2];
setAttrs({ ["repeating_bottles_"+rowid+"_checkbox0"]:0,
["repeating_bottles_"+rowid+"_checkbox1"]:0,
"repeating_bottles_showrowid":rowid
});
});
It simply does nothing.
but if i replace
on("clicked:repeating_bottles:emptyBottle"
by
on("change:repeating_bottles:textInputBottle"
then the first code, at the top, works pretty fine...
I'm lost, could someone help me with this one?
Thank you guys :)