© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Gush

visible on select

i had a toggle form for this visable but now i want to do it with a select so that if id 2 or 3 of the related table is selected the tab is visible,

i appreciate any help

Tabs\Tab::make(__('nlmn-customer-module::customer.customer_resource.company_details'))
                            ->icon('heroicon-m-building-office-2')
                            ->schema([
                                Select::make('company_entity_type')
                                    ->label(__('nlmn-customer-module::customer.customer_resource.entity_type'))
                                    ->relationship('customer_type', 'name')
                                    ->native(false)
                                    ->live()
                                    ->required(),
                                TextInput::make('company_cae')
                                    ->label('CAE'),
                                Select::make('company_sector_activity_id')
                                    ->label(__('nlmn-customer-module::customer.customer_resource.activity_sector'))
                                    ->preload()
                                    ->searchable()
                                    ->native(false)
                                    ->relationship('sector_activities', 'name'),
                                TextInput::make('company_employee_count')
                                    ->label(__('nlmn-customer-module::customer.customer_resource.employee_count'))
                                    ->numeric(),
                                TextInput::make('company_foundation_year')
                                    ->label(__('nlmn-customer-module::customer.customer_resource.foundation_year'))
                                    ->numeric()
                                    ->placeholder('2023'),
                            ])->columns(2)->visible(fn (Get $get): bool => $get('is_company')),
Tabs\Tab::make(__('nlmn-customer-module::customer.customer_resource.company_details'))
                            ->icon('heroicon-m-building-office-2')
                            ->schema([
                                Select::make('company_entity_type')
                                    ->label(__('nlmn-customer-module::customer.customer_resource.entity_type'))
                                    ->relationship('customer_type', 'name')
                                    ->native(false)
                                    ->live()
                                    ->required(),
                                TextInput::make('company_cae')
                                    ->label('CAE'),
                                Select::make('company_sector_activity_id')
                                    ->label(__('nlmn-customer-module::customer.customer_resource.activity_sector'))
                                    ->preload()
                                    ->searchable()
                                    ->native(false)
                                    ->relationship('sector_activities', 'name'),
                                TextInput::make('company_employee_count')
                                    ->label(__('nlmn-customer-module::customer.customer_resource.employee_count'))
                                    ->numeric(),
                                TextInput::make('company_foundation_year')
                                    ->label(__('nlmn-customer-module::customer.customer_resource.foundation_year'))
                                    ->numeric()
                                    ->placeholder('2023'),
                            ])->columns(2)->visible(fn (Get $get): bool => $get('is_company')),
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Reactive select => visible Card
FilamentFFilament / ❓┊help
3y ago
Visible with Select, dynamic inputs
FilamentFFilament / ❓┊help
2y ago
Visible On Edit
FilamentFFilament / ❓┊help
3y ago
Panel should be visible based on User Selection
FilamentFFilament / ❓┊help
3y ago