© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
8 replies
bionary

Conditionally Prevent Record Edit?

I know I can disable form inputs one-by-one via
->disabled(...)
->disabled(...)
. But, what if I wish to prevent editing for entire page based on a field in the model. Like if
$record->is_locked == true
$record->is_locked == true
?

If would be great to prevent the edit page from opening or in the least open to a view page.

Thanks in advance for any guidance!
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

single record edit
FilamentFFilament / ❓┊help
2y ago
conditionally show editForm in Select
FilamentFFilament / ❓┊help
14mo ago
Conditionally show widget based on record
FilamentFFilament / ❓┊help
2y ago