Atreides
Atreides
FFilament
Created by Atreides on 10/7/2024 in #❓┊help
How to easily center a label
How can i easily center a label? Without centering it for the hole project, only for one Field in a Form Component? Is there a easy way to center a label? https://filamentphp.com/api/3.x/Filament/Forms/Components/Concerns/HasLabel.html
7 replies
FFilament
Created by Atreides on 7/29/2024 in #❓┊help
Filament Wizard Step change from visible to hidden error
I created a Wizard form with 7 Steps. The fourth step has a visible() condition. While filling the form, the condition result can change from true to false. If that happens, I get the last step rendered in the next step after clicking on "next". Does anyone know this error/how to fix? Its pretty strange, and i think its because the wizard is not made for such a visibility change while filling the form. Maybe there is a workaround?
4 replies
FFilament
Created by Atreides on 7/23/2024 in #❓┊help
Trigger Wizard next step via Action
I have a form, where I send a notification an a specific update:
Notification::make() ->title('In the next step you could also use XXX') ->info() ->actions([ NotificationAction::make('To next step') ->button() NotificationAction::make('Abbrechen') ->button() ->extraAttributes(['x-on:click' => 'close']), ]) ->send();
How can i achieve in the first NotificationAction to try to move an to the next Step?
3 replies
FFilament
Created by Atreides on 7/9/2024 in #❓┊help
How to get active tab in beforeValidation()
What I am trying to do: I have a Wizard with Steps. In the first Step, I have two tabs: 1. The first is custom component, where you can select packages. 2. The second is a custom component, where the user can put together the package by him self with selects. I validate the most stuff in beforeValidation() of the Wizard Step, cause they are also really custom and it was easier than to define them in the rules. But now i need to know, which of the two steps is selected, cause i only need to validate the active tab. Alternate: On switch tab set the package id (custom package_id = 0). Additional: I found this https://github.com/filamentphp/filament/discussions/11375 but its only in non-static context. The forms are normally static and i dont wanna change that
2 replies