Show a list of options based on another field

Hello devs, how can I show a list of options with Select based on another select element?
Select::make('choice')
->options(
[
'option-1' => 'Option 1',
'option-2' => 'Option 2',
]);
Select::make('choice')
->options(
[
'option-1' => 'Option 1',
'option-2' => 'Option 2',
]);
And I have another select field that should show different options that should still be saved in the choice field.
2 Replies
Abdellah
AbdellahOP7mo ago
You're a king @dissto . Thank you a million times.
Want results from more Discord servers?
Add your server