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:Jump to solution
Schema is defined static but you can access the regular properties like this
->state(fn ($livewire) => $livewire->error)
...1 Reply
Solution
Schema is defined static but you can access the regular properties like this
->state(fn ($livewire) => $livewire->error)