F
Filament15mo ago
wotroe

Opening edit modal from a different resource (simple modal resources)

Hi, I was wondering whether it's possible to create an action in a resource to open an edit modal from a different resource. Let's say I have two models, a Dog model and a DogOwner model. I have a resource for both of them. In an ideal scenario, I'd like to have an 'Edit Dog Owner' button in the Dog resource, preferably without using relation managers for the sake of simplicity. Is this possible?
2 Replies
toeknee
toeknee15mo ago
Yes this is now possible in V3. You would use the relationship so say rendering the dog owner name in the edit form of the dog, then you edit see: https://filamentphp.com/docs/3.x/forms/fields/select#editing-the-selected-option-in-a-modal
wotroe
wotroeOP15mo ago
Thank you!
Want results from more Discord servers?
Add your server