Am I correct in understanding `Form->disabled()` is not really 'officially' supported?

I noticed when using this, it correctly disables all the form fields. However, it also still allows submitting, does not hide the submit, and even pops up Saved notifications. That is undesirable behaviour, but I realized after researching this further, the documentation doesn't document disabling entire forms. However, the Form supports it and uses CanBeDisabled which suggests maybe it was intended to be used? Note I am working around this now by overriding getFormActions() which works well enough, but was confused about this behaviour so curious if it's a bug or just not officially supported.
Solution:
The actions are probably separate from the form (they are on the Page) so disabling the form has no effect on them
Jump to solution
2 Replies
Solution
Dennis Koch
Dennis Koch3mo ago
The actions are probably separate from the form (they are on the Page) so disabling the form has no effect on them
Dennis Koch
Dennis Koch3mo ago
You can additionally disable the methods though.

Did you find this page helpful?