How do i update collection for a item.parent.data?

I have two accordions: one contains a collection that repeats, and inside it, there’s another accordion with a different collection that also repeats. I need to update the parent accordion’s collection from an input inside the child accordion, but simply using the data name doesn’t work.

this should work

const data = your collection;

data.task_cost =formula;

return data
1 Like

I wanted to suggest this as well, but it’s not a good practice, it requires a deeper understanding of WeWeb’s quirks, because sometimes it updates the variable, but it doesn’t reflect in WeWeb’s reactivity. Still, this is a valid answer.

1 Like