Get current form values
How can I get a value from the form to pass to the relationship manager?
Solution:Jump to solution
I have solved it with the mutate and $livewire->getOwnerRecord()
```php
<?php
...
7 Replies
I'm curious to know what are you trying to do exactly? Can you share a bit more context?
I have a resource that has a Relation Manager that uses the form of another resource. In the relation manager I need one of the main resource values, together with the id that is automatically passed to the relation manager Filament.
PRINCIPAL RESOURCE - TICKET
RELATIONSHIP MANAGER - TASKS (use TaskResource form)
In the relationship manager, the ticket id set by filament, but together with that, I need the customer_id of the ticket.
i think this is used for it
Can you share the code of your relation manager? Just to see how you are reusing the form of the Task resource.
Solution
I have solved it with the mutate and $livewire->getOwnerRecord()
Nice!
Thanks for your time @Patrick Boivin 🙂