© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
dhanar98

Based on select option set regex in text input field

                Forms\Components\TextInput::make('code')
                    ->required()
                    ->maxLength(255), // need to add the regex for this
                Forms\Components\Select::make('type')
                    ->searchable()
                    ->required()
                    ->options(self::getBarcodeTypes()),
                Forms\Components\TextInput::make('code')
                    ->required()
                    ->maxLength(255), // need to add the regex for this
                Forms\Components\Select::make('type')
                    ->searchable()
                    ->required()
                    ->options(self::getBarcodeTypes()),
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

text input field update based on another text input
FilamentFFilament / ❓┊help
2y ago
Dependent file upload option based on select field in form
FilamentFFilament / ❓┊help
2y ago
Dynamic fields based on a select option
FilamentFFilament / ❓┊help
3y ago
Dynamic Fields Based on Select Option Issue
FilamentFFilament / ❓┊help
3y ago