Render form elements based on selection (dynamically)

Hi! I'm using the Form Builder standalone but I have a question regarding rendering. My Livewire component now has this:
// ...
<div class="modal-body">
  {{ $this->form }}
</div>
// ...


My Form schema looks like this:
protected function getFormSchema(): array
    {
        return [
            Select::make('key')
                ->label('Vault type')
                ->options(VaultService::getVaults())
                ->required(),

            // value
        ];
    }


But based of the selected vault I want to load a form form the belonging vault class. That whole formset should become value as a array.

Please let me know if you need more info
Was this page helpful?