in a repeater, what's the best way to get items above this item?
I'm building a little system for a friend, and we need to add up all before the current repeated to determine when they will start... I can get all items but if I do that I know know which item this sub field belongs too
8 Replies
The problem is it's a repeater and I don't think I can get the repeater that's it's parent. when I do it returns null
it's ok I can access them on the livewire component they seem in order so I can just loop for now
$get should work, what did you try?
$get('runners' and $get('../runners'))
it was on afterStateUpdated on a field inside the repeater and the repeater was named runners. Will review it later
from where are you calling this
sorry
on a select inside the repeater
just seen
$get('../../runners')
I thought that shortly after I wrote what I wrote you know... thanks Dan!