make create and create buttons always display on form screen even when scrolling

It's quite boring to go all the way down to save changes while i only made change to my top input so is there any way filament to make these buttons fixed
Solution:
add in the provider
\Filament\Pages\Page::$formActionsAreSticky = true;
\Filament\Pages\Page::$formActionsAreSticky = true;
...
Jump to solution
12 Replies
toeknee
toeknee6mo ago
This is a way to have them floating/fixed I am sure, will dive
Solution
LeandroFerreira
LeandroFerreira6mo ago
add in the provider
\Filament\Pages\Page::$formActionsAreSticky = true;
\Filament\Pages\Page::$formActionsAreSticky = true;
toeknee
toeknee6mo ago
Would you mind doing a PR to the docs?
LeandroFerreira
LeandroFerreira6mo ago
yes
Adnan Yalahow
Adnan YalahowOP6mo ago
I have added this line to my AppServiceProvider in the boot function but i can't see any changes. would you please explore more? Thank you
LeandroFerreira
LeandroFerreira6mo ago
share a video or screenshot to see the issue
Adnan Yalahow
Adnan YalahowOP6mo ago
the first image I am at the top of my page and can't see any form actions apart from delete. The second is is when I scroll down, then i will see save changes or if its create i see create and create another i want them to be always visible when my form is long
No description
No description
LeandroFerreira
LeandroFerreira6mo ago
This should work unless the height isn’t sufficient to display the actions. Could you try adding some placeholder fields to see if they appear?
toeknee
toeknee6mo ago
Must say I am not seeing it trigger it anymore when I tested it
Adnan Yalahow
Adnan YalahowOP6mo ago
still no change
LeandroFerreira
LeandroFerreira6mo ago
Adnan Yalahow
Adnan YalahowOP6mo ago
Very weird behavior 🤔 I don't know if a certain height is applicable here, but while my page was long enough to be scrolled I could not see any changes, surprisingly when added more useless form components to my form I see the change. anyway Thank you.
Want results from more Discord servers?
Add your server