disable submit button on form

Is there a way to disable the submit button on a form? I see the form component has a disabled method, but it just disables the fields on the form. I looked for a disableSubmit method or something similar and I don't see anything. I'm sure there must be a way to accomplish it and I'm just overlooking it.

public function form(Form $form): Form
    {
        return $form->schema([
            ...my form..
        ]);
}
Was this page helpful?