How to remove create / create another buttons from wizard?
Solution:Jump to solution
if you are using wizard in resources, you should use
HasWizard
trait and getSteps()
method in the CreatePage
https://filamentphp.com/docs/3.x/panels/resources/creating-records#using-a-wizard...14 Replies
They are not part of the wizard, they are part of the page
Solution
if you are using wizard in resources, you should use
HasWizard
trait and getSteps()
method in the CreatePage
https://filamentphp.com/docs/3.x/panels/resources/creating-records#using-a-wizardHow do we achieve this if being used in the modal of a relationship manager?
RelationManager does not have CreateAction
what does it mean? Where is the form?
public function form(Form $form): Form
{
return $form
->schema([ /////// ]);
}
ok
how do you fire the form/action?
ABCRelationManager::class is added in the parent model under the getRelations() function
can you share the
ABCRelationManager.php
file please?It has around 800+ lines, but I checked in the file it has in the header action, can anything be done here?
->headerActions([
Tables\Actions\CreateAction::make(),
])
check my example above
Thank you so very much @Leandro Ferreira, I was able to achieve what was needed by shifting the code from form() function to CreateAction::make()->steps([///////]);