© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
10 replies
aacarrion4

Hide field in form

Hi, I am creating different resources, depending on the type of role, but, I want it to NOT SHOW, just send a default role.

This is my code:

Select::make('roles')
->relationship('roles', 'name')
->default(Role::where('name', 'student')->first()->id)
->preload(),
image.png
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

Hide form field in relation manager create modal
FilamentFFilament / ❓┊help
2y ago
how to hide a form field conditionally?
FilamentFFilament / ❓┊help
3y ago
how can I hide a form field in first repeater
FilamentFFilament / ❓┊help
3y ago
How to hide one field in repeater form ( only in first element )??
FilamentFFilament / ❓┊help
3y ago