AttachAction title

Hi, i have AttachAction action in a relation manager, and i want it's title attribute to be name which composes from first_name and last_name, spent too much time; no luck. A help would be appreciated.
Solution:
My PR which fixes this just got merged, and I think the release with that PR in it has been tagged, so updating composer should get it. The PR includes an example of how you set the recordTtile() on an AttachAction or AssociateAction. https://github.com/filamentphp/filament/pull/8992...
GitHub
Check for recordTitle in AttachAction $getOptions by cheesegrits · ...
Changes have been thoroughly tested to not break existing functionality. New functionality has been documented or existing documentation has been updated to reflect changes. Visual changes are ex...
Jump to solution
8 Replies
samsasba
samsasbaOP14mo ago
bump
Dennis Koch
Dennis Koch14mo ago
There should be a recordTitle() method or similar.
samsasba
samsasbaOP14mo ago
in the database i store first_name last_name and i use Attribute cast, which makes the problem
Dennis Koch
Dennis Koch14mo ago
Why is it an issue? I think it might work with attributes
samsasba
samsasbaOP14mo ago
i tried it not working it checks for recordTitleAttribute() which fetches from db directly bump help help
Solution
cheesegrits
cheesegrits14mo ago
My PR which fixes this just got merged, and I think the release with that PR in it has been tagged, so updating composer should get it. The PR includes an example of how you set the recordTtile() on an AttachAction or AssociateAction. https://github.com/filamentphp/filament/pull/8992
GitHub
Check for recordTitle in AttachAction $getOptions by cheesegrits · ...
Changes have been thoroughly tested to not break existing functionality. New functionality has been documented or existing documentation has been updated to reflect changes. Visual changes are ex...
cheesegrits
cheesegrits14mo ago
Until that PR got merged last night, recordTitle() on AttachAction just didn't work. If the PR didn't make it into 3.0.74, it'll be in the next release.
samsasba
samsasbaOP14mo ago
@Hugh Messenger Thanks so much for both PR and help!
Want results from more Discord servers?
Add your server