Mark Chaney
Mark Chaney
FFilament
Created by Mark Chaney on 1/26/2025 in #❓┊help
Secondary Modal Submit Action with RequiresConfirmation
Im trying to add another submit action on a modal that requires a confirmation. Tried adding that, but cant seem to get access to the original actions form. Any suggestions? I tried also using makeSubmitAction too, but it doesnt allow you to add a requiresConfirmation or much else to it.
->modalFooterActions(function (Action $action) {
return [
$this->terminationRequiresReview() ? $this->submitTerminationForReviewAction($action) : $action->getModalSubmitAction(),
$action->getModalCancelAction(),
];
})

$this->submitTerminationForReviewAction(Action $parentAction): Action
{
return Action
->label('Submit for Review')
->requiresConfirmation()
->modalWidth(MaxWidth::ExtraLarge)
->modalHeading('Submit for Review')
->modalDescription('Are you sure you are ready to submit this action?')
->infolist([
ShoutEntry::make('review-alert')
->content('Once reviewed you will be notified of the results of the review and provided with instructions for next steps.'),
])
->action(function (Action $action) {
// need access to form data and it should be validated first like the normal submit action
$this->saveFormData();
$action->cancelParentActions();
});
}
->modalFooterActions(function (Action $action) {
return [
$this->terminationRequiresReview() ? $this->submitTerminationForReviewAction($action) : $action->getModalSubmitAction(),
$action->getModalCancelAction(),
];
})

$this->submitTerminationForReviewAction(Action $parentAction): Action
{
return Action
->label('Submit for Review')
->requiresConfirmation()
->modalWidth(MaxWidth::ExtraLarge)
->modalHeading('Submit for Review')
->modalDescription('Are you sure you are ready to submit this action?')
->infolist([
ShoutEntry::make('review-alert')
->content('Once reviewed you will be notified of the results of the review and provided with instructions for next steps.'),
])
->action(function (Action $action) {
// need access to form data and it should be validated first like the normal submit action
$this->saveFormData();
$action->cancelParentActions();
});
}
19 replies
FFilament
Created by Mark Chaney on 1/24/2025 in #❓┊help
SubNavigation Sort Order when Mixing Groups and Items
I want to do Item then group then item, but it seems to always put the items at the top. I dont want put the other items in groups as that changes their design. Any suggestions?
return [
NavigationItem::make('Review Status')
->badge($statusCount, $statusColor),
NavigationGroup::make('Items to Review')
->collapsible(false)
->items($this->getReviewItemsNavigation()),
NavigationItem::make('Comments')
->url('#review-comments'),
];
return [
NavigationItem::make('Review Status')
->badge($statusCount, $statusColor),
NavigationGroup::make('Items to Review')
->collapsible(false)
->items($this->getReviewItemsNavigation()),
NavigationItem::make('Comments')
->url('#review-comments'),
];
2 replies
FFilament
Created by Mark Chaney on 1/23/2025 in #❓┊help
Widgets initially load on mount
I have a view record page with multiple widget and im setting a few things on the widgets that need to get to the page. Ive disabled lazy loading my relation managers that has resulted in the data getting pushed at the right time, but the the widgets still seemed to be loaded after the RM. How can i ensure they are loaded before the RM's when i have lazy loading off?
2 replies
FFilament
Created by Mark Chaney on 1/23/2025 in #❓┊help
getSubNavigation() refresh?
Using getSubNavigationt to setup a side menu on a page and its working great except i cant seem to get the badges to update. Ive tried unsetting $cachedSubNavigation when my data updates, but the badges in this nav do not seem to reflect it. Ive actually doubl checked the source and even did some ray dumps there and the navigation items do indeed have the new values. What am i missing?
3 replies
FFilament
Created by Mark Chaney on 1/22/2025 in #❓┊help
TableColumn with url() results in description not selectable
I dont know about you, but we find it useful for our name column on our Users table to include their email address in the description() area. The problem is that when combined with url() on the column, it wraps the entire cell in anchors and now the description field is no longer selectable. Is there a simple solution for this?
TextColumn::make('name')
->description(fn ($record) => $record->email)
->url(fn ($record) => route('property-managers.show', $record->property_manager_id)),
TextColumn::make('name')
->description(fn ($record) => $record->email)
->url(fn ($record) => route('property-managers.show', $record->property_manager_id)),
8 replies
FFilament
Created by Mark Chaney on 1/22/2025 in #❓┊help
Default Relation Manager Tab on Page Load?
I have a ViewRecord page with 3 tabs for the relation managers, it goes RM, then RelationalGroup, then another RM standalone. I would love for the RM Group to be the default tab. Possible?
4 replies
FFilament
Created by Mark Chaney on 1/15/2025 in #❓┊help
Infolist Section Badge
I would really like to be able to have a badge in the header of an infolist section. Looking for suggestions. Should I just maybe make a custom action with a custom view and use the bade component? Wanting to do this in the cleanest way possible.
6 replies
FFilament
Created by Mark Chaney on 1/10/2025 in #❓┊help
Multiple Infolists on ViewRecord
I want to use multiple infolists on a viewrecord page so that i can specify a different ->record() on each one as i am reusing infolists on other resources. You can do mulitple forms with getForms(), but i dont see a getInfolists() method. Is my only option overriding the view and setting up multipel ones that way? I would prefer not to do that. I guess the other option is doing infolists in widgets maybe? Just thought of that while i typed this out. Though a bit less control on placement that way.
6 replies
FFilament
Created by Mark Chaney on 11/13/2024 in #❓┊help
Fileupload field and Grid
No description
4 replies
FFilament
Created by Mark Chaney on 11/12/2024 in #❓┊help
Lazy loaded tables and refresh()
I would really like the ability to lazy load table components I have in tabs on standalone livewire pages. But if I have a dispatch to refresh that component after an action happens and if it’s not currently loaded, I get the error ‘$table must not be accessed before initialization’. How can I more elegantly handle this in a simple way? Do I override refresh() in my tabs trait that does some checks first? Seems like livewire should handle this a bit more gracefully. Obviously it doesn’t need to rerender something that hasn’t rendered yet.
2 replies
FFilament
Created by Mark Chaney on 9/29/2024 in #❓┊help
Global Notification Colors
As far as I can see, there is no way to automatically have the color() of the notificaiton simply to be the same as the status(), right? So if its a success message, the color will be success (green). I simply want background colors automatically on all notifications. Am i missing something? Tried Notification::configureUsing($notification), but nothing is available in the $notification.
7 replies
FFilament
Created by Mark Chaney on 9/26/2024 in #❓┊help
ActionGroups and Testing
When asserting that a table action exists, is it handled any differently when an action group is involved? Having an issue asserting that an ImportAction exists in an ActionGroup on a table header. Says it cant find it.
2 replies
FFilament
Created by Mark Chaney on 9/18/2024 in #❓┊help
unique() and disabled()
Why is unique still ran on a disabled field? Even weirder is that unique(IgnoreRecord: true) is set, so it should pass anyway. if i remove my disabled check and allow input, it saves fine with the existng data.
2 replies
FFilament
Created by Mark Chaney on 9/17/2024 in #❓┊help
Control the order of processing import records?
Is there way to control the order a csv is processed? Lets say i have a particular date column and i want to make sure rows are processed oldest to newest.
3 replies
FFilament
Created by Mark Chaney on 9/14/2024 in #❓┊help
Center Top Navigation?
Anyone worked out the css or whatever is needed to center the top navigation items in the panel builder when choosing the top layout?
5 replies
FFilament
Created by Mark Chaney on 9/11/2024 in #❓┊help
Working form field on ViewRecord?
I have an Input form at the top of the long form that i use for search for input fields. Works great on edit, but on viewrecord, its disabled. Is there a way not to disable this single input field on ViewRecord? Its set to dyhydrated(false) anyway, so its never used for actual saving anything.
4 replies
FFilament
Created by Mark Chaney on 9/10/2024 in #❓┊help
canAccess() and Clusters
Shouldnt i be able to use public static function canAccess(): bool { return false; } } to stop a user from accessing a cluster and its contents? Obviously testing in its simplest form. Right now it doesnt appear to do anything.
5 replies
FFilament
Created by Mark Chaney on 9/6/2024 in #❓┊help
Widgets Same Height
These are general widgets and not charts. Wasnt sure if anyone else already had a solution created for ensuring widgets in the same row have the same height. Trying to do it as simple and clean as possible.
4 replies
FFilament
Created by Mark Chaney on 9/6/2024 in #❓┊help
Navigation and Dashboard
How can i only have the logo go to the dashboard and keep it dashboard form the main navigation?
4 replies
FFilament
Created by Mark Chaney on 8/24/2024 in #❓┊help
Disable ExportAction Modal?
If we are not going to have any export options and have mapping disabled, there really is not need for a modal for an export action. Is there a way to bypass it?
10 replies