F
Filament10mo ago
nyannss

Ignore null values save to database and create custom confirmation text

Hello! I'm new using fillament, i'm trying to do create form, so, how to ignore column when the value is null. Because in the migration, i have already defined the column is required and have default value. I dont want put the default value in form because in the placeholder there is a caption that explains, and I don't want it hiding because of the filled value. and one more, how to create custom confirmation text when saving data. cheers mate 🍺
7 Replies
LeandroFerreira
LeandroFerreira10mo ago
custom confirmation text.. sorry, what does it mean?
nyannss
nyannssOP10mo ago
No description
LeandroFerreira
LeandroFerreira10mo ago
add this in the CreatePage
protected function getCreateFormAction(): Action
{
return parent::getCreateFormAction()
->submit(null)
->requiresConfirmation()
->action(fn () => $this->create());
}
protected function getCreateFormAction(): Action
{
return parent::getCreateFormAction()
->submit(null)
->requiresConfirmation()
->action(fn () => $this->create());
}
nyannss
nyannssOP10mo ago
is possible to change confirmation message?
No description
nyannss
nyannssOP10mo ago
Thank you so much

Did you find this page helpful?