© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Marwam Malta

Increase a select's option by the amount of reapeater in the form

I have this select in my form which is inside a repeater

"Forms\Components\Wizard\Step::make('RulesCategoryDependent')
->label('Categories by Dependents')
->schema([
Forms\Components\Repeater::make('rules_category_dependents.dependent_category')
->label('Table')
->schema([
Forms\Components\Select::make('dependency_class')
->label('Select dependent class')
->options([
'1C' => '1st class',
'2C' => '2nd class',
'3C' => '3rd class',
'4C' => '4th class'
])
])"

I need that when the number of 'repeater' is greater than four, another option is added to the selects. Example: if it has 5 it adds " '5C' => '5th class'", if it has 6 " '6C' => '6th class'". How to do this?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

select depend by another select option
FilamentFFilament / ❓┊help
3y ago
How to modify the form opened from a select option?
FilamentFFilament / ❓┊help
3y ago
Create select option form without relationship
FilamentFFilament / ❓┊help
3y ago
Select the option Obstructed from view by repeater
FilamentFFilament / ❓┊help
13mo ago