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
LeandroFerreira7mo ago
custom confirmation text.. sorry, what does it mean?
nyannss
nyannssOP7mo ago
No description
LeandroFerreira
LeandroFerreira7mo 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
nyannssOP7mo ago
is possible to change confirmation message?
No description
nyannss
nyannssOP7mo ago
Thank you so much
Want results from more Discord servers?
Add your server