Disable form field if it has value
Hello, is there a way to disable form field on edit page if for example it is not empty or it has a certain value. I'm trying to use a disabled function but I'm not sure how to get the model values into the condition.
Any help appreciated!
5 Replies
I think this works
or not now I'm in debt
doubt*
I'm still om version 2 so first solution - not there yet π Livewire 3 messes up my other stuff
->disable(fn ($state) => filled($state))
It's the same for v2 π At the least the concept is the same.The last suggestion worked! Thank you so much. I've been only playing with Filament for 2 days.