Hide "save changes" button in form wizard
I have made an auto save form.
But i don't know how to hide the "save changes" button, because it is not necessary in my case
Solution:Jump to solution
I think instead of using
HasWizard
trait, you could use the Wizard
field in the pages or resource:
```php
public function form(Form $form): Form
{...10 Replies
@redaoutarid You can use method on edit page.
@Asmit Nepali
it doesn't work.
It is only disabled not hidden
i also tried this code, and i get the same result
Are you using the wizard in a resource?
@Leandro Ferreira
i use them in pages
@redaoutarid Could you please try using on a standard edit form? I'm interested in knowing what happens when it's applied to a regular form, rather than a form wizard. Because I tried on regular form.
Solution
I think instead of using
HasWizard
trait, you could use the Wizard
field in the pages or resource:
it works, thank you.
I don't know why it doesn't work when using
HasWizard
trait
can you check @Leandro Ferreira's answerbecause
->submitAction($this->getSubmitFormAction())
in the trait
You can also create a custom trait or comment the submit action in the form method