F
Filament2mo ago
Tyroga

Attach & attach another action label in relationship attach modal, can it be changed?

The concept of attaching and detaching is confusing to some of my users, however, they are the default options shown for any actions on a many-to-many relationship manager on a filament resource. I tend to change them to Add and Remove to make it clearer. I am able to change the text pretty much everywhere except for the "Attach & attach another" button in the modal. The singular "Attach" button is changed to "Add" in the screenshot using "modalSubmitActionLabel" method, but it doesn't also change the other submit button "Attach & attach another". Can anyone suggest how I might do this?
No description
1 Reply
Matthew
Matthew2w ago
Like this:
->modalSubmitActionLabel('Add Location(s)')
->attachAnother(false)
->modalSubmitActionLabel('Add Location(s)')
->attachAnother(false)
Want results from more Discord servers?
Add your server