Using $get to get the state of parent form fields in repeaters
Hi all
Is there a way of getting the state of a parent form field in a closure in a repeater field? Eg this doesn't work:
6 Replies
$get('../../title')
Weird, worked for us multiple times, like in this demo:
https://laraveldaily.com/post/filament-repeater-set-values-manually-other-fields
Have you tried it on a field inside the repeater's schema? It's working in fluent methods on the repeater itself. The problem is when trying to access parent field state in the repeater's sub-fields
Hmm good point it's a different case then, then maybe @Leandro Ferreira is right here
Solution
Nice thanks. I didn't see that when I checked the docs.