Change layout of Dynamic form

hello I have a dynamic form like this but instead of the layout dynamic form shown below, I want it to show beside the customer button. How can I achieve that?
Forms\Components\Placeholder::make('Choose and input customer data'), FilamentSelectify\Components\ButtonGroup::make('customer_type')
->live()
->required()
->afterStateUpdated(fn ( FilamentSelectify\Components\ButtonGroup $component) => $component
->getContainer()
->getComponent('dynamicCustomerForm')
->getChildComponentContainer()
->fill()),
Forms\Components\Grid::make(3)
->schema(fn (Forms\Get $get): array => match ($get('customer_type')) {
default => [],
})
->key('dynamicCustomerForm'),
Forms\Components\Placeholder::make('Choose and input customer data'), FilamentSelectify\Components\ButtonGroup::make('customer_type')
->live()
->required()
->afterStateUpdated(fn ( FilamentSelectify\Components\ButtonGroup $component) => $component
->getContainer()
->getComponent('dynamicCustomerForm')
->getChildComponentContainer()
->fill()),
Forms\Components\Grid::make(3)
->schema(fn (Forms\Get $get): array => match ($get('customer_type')) {
default => [],
})
->key('dynamicCustomerForm'),
0 Replies
No replies yetBe the first to reply to this messageJoin