Is it possible to retrieve the parent id of the relationship?
I have a repeater for questions and its like this, Questions -> options (list of questions)
I wanted to access it's parent's id so I could add it to the state[]
15 Replies
Try this, $livewire and $ownerRecord.
Got this error unfortunately

But I was Able to solve it using
$get('id')
ahh your trying to do the action on the resource, that your dong there is spot on with get.
What I provided works on say relationship managers when editing etc
I see, how'd did you discover $livewire parameter?
It's well known within Filament.
I barely saw it in the docs
Ah specfic to relation manager
No, it is part of the components generally, but it's not something you want to use much if you can avoid as it's the whole component object being called again.
Is there an option to refresh the page iside the action?
Page or the form? $form->fill($newData) ? or $form->refresh()?
Form
But inside the addAction() is that possible?
Hmmm
You could put a watcher on it, and then refresh it after emiting the event?
Possible.
Was thingking of just a function call or something like that but didn't work though