How to disable button after performing the action

Disable the send to customer action after performing the action can you suggest any logic behind it
No description
1 Reply
InSeriousNeedOfHelp
And what about disabling a form component after it's value is compiled for the first time? If I compile it and it uses this kind of function ->disabled(fn ($state) => !!$state) to get disabled, it's value never reaches the save function of the form😅 My bad, found this for my use case, I don't think this approach is applicable to actions tho: ->disabled($is_contraente_disabled)->dehydrated(),
Want results from more Discord servers?
Add your server