Visibility of multiple fields

Hey guys, I am new to Filament and I was wondering is there a option to control visibility of multiple fields one below each other? I guess I am asking for some kind of wrapper where I can call visible() or hidden() on. I read that there is Section but I don't want to create a new section. One other option is to extract the callback and use it in every field (3 times if I have 3 fields)
Pseudo code what I am looking for

Select::make('my_field')

Wrapper::make([
Select::make(...)
Text::make(...)
Text::make(...)
])->visible(function (Get $get) {
return $get('my_field') === 'value')
})
Pseudo code what I am looking for

Select::make('my_field')

Wrapper::make([
Select::make(...)
Text::make(...)
Text::make(...)
])->visible(function (Get $get) {
return $get('my_field') === 'value')
})
Cheers! Bobby
Solution:
You can use a Group instead of a Section
Jump to solution
2 Replies
Solution
awcodes
awcodes11mo ago
You can use a Group instead of a Section
bobbyborisov
bobbyborisovOP11mo ago
@awcodes thanks, it worked!
Want results from more Discord servers?
Add your server