© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
16 replies
Scott

Is there a way to conditionally disable the new post button?

Hi guys,

Thank you for all your help today! I was wondering if there's a way to conditionally disable the "New" button on a resource?

I only want the "New" button to be enabled once a user has completed a number of setup steps.

And on a similar vein, I want to add another button next to the "New site" button that says "Authorise Airtable" (this is the step they need to take before being able to add a new site)
image.png
Solution
Yes add ->visibile(fn($record) => auth()->user()->can('create Site'))
Jump to solution
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

Is there a way to disable the tenant registration?
FilamentFFilament / ❓┊help
2y ago
conditionally disable <x-filament::icon-button>
FilamentFFilament / ❓┊help
3y ago
Is there a way to move a getFormActions button?
FilamentFFilament / ❓┊help
16mo ago
Is there a way to conditionally hide the Tenant Registration Link in the Tenant Menu?
FilamentFFilament / ❓┊help
3y ago