Dropdown with more than 50 records

Novice user. I have a dropdown for my create and edit forms that have about 70 records. I want the whole list to be available to the user. How can I increase this limit?
->headerActions([
Tables\Actions\AttachAction::make()
->preloadRecordSelect()
->form(fn (AttachAction $action): array => [
$action->getRecordSelect(),
Forms\Components\TextInput::make('fame_points')
->required()
->integer(),
]),
])
->headerActions([
Tables\Actions\AttachAction::make()
->preloadRecordSelect()
->form(fn (AttachAction $action): array => [
$action->getRecordSelect(),
Forms\Components\TextInput::make('fame_points')
->required()
->integer(),
]),
])
2 Replies
Julien B. (aka yebor974)
Hi. You have ->optionsLimit(…) on your record select. You can customize it
Randak
RandakOP3w ago
Thank you so much for your help Julien, I really appreciate it. I had tried that (among many other things) after the 'preloadRecordSelect()' but it didn't recognize it and caused an error. Based on your tip, I tried it after the '$action->getRecordSelect()' and it worked. Have a great day! Working code:
->headerActions([
Tables\Actions\AttachAction::make()
->preloadRecordSelect()
->form(fn (AttachAction $action): array => [
$action->getRecordSelect()
->optionsLimit(100),
Forms\Components\TextInput::make('fame_points')
->required()
->integer(),
]),
])
->headerActions([
Tables\Actions\AttachAction::make()
->preloadRecordSelect()
->form(fn (AttachAction $action): array => [
$action->getRecordSelect()
->optionsLimit(100),
Forms\Components\TextInput::make('fame_points')
->required()
->integer(),
]),
])

Did you find this page helpful?