F
Filament3mo ago
frame

v4: set TextEntry state from handleRecordCreation

I want to display an error message in a TextEntry when record creation halts. What should I try to do that? There is an example here for sending a Notification but I want to display the message above the submit button so its easier to notice https://filamentphp.com/docs/4.x/resources/creating-records#halting-the-creation-process
Solution:
Schema is defined static but you can access the regular properties like this ->state(fn ($livewire) => $livewire->error)...
Jump to solution
1 Reply
Solution
frame
frame3mo ago
Schema is defined static but you can access the regular properties like this ->state(fn ($livewire) => $livewire->error)

Did you find this page helpful?