© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
F
Filament
•
3y ago
•
40 replies
Renzo
Hide a Toggle field depending on Select option
For some reason
, I can
't make it work
. Here
's what I did
:
S
e
l
e
c
t
:
:make
(
'roles
'
)
-
>relationship
(
'roles
'
,
'name
'
)
-
>live
(
)
,
T
o
g
g
l
e
:
:make
(
'is
_admin
'
)
-
>hidden
(fn
(
$record
)
=
>
!
$record
-
>roles
-
>pluck
(
'name
'
)
-
>contains
(
'Vendor
'
)
)
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
show/hide field depending on data load?
F
Filament / ❓┊help
3y ago
Force select value based on a toggle option
F
Filament / ❓┊help
11mo ago
How to hide/show a text field depending on the selected value in the select field?
F
Filament / ❓┊help
2y ago
Showing a table below a select field depending on the selected field.
F
Filament / ❓┊help
3y ago