requires confirmation got skipped if submit is not null

Hi, is this an intended behaviour or is actually an issue?
5 Replies
Dennis Koch
Dennis Koch8mo ago
I don’t understand the question.
Ricardo Sawir
Ricardo SawirOP8mo ago
protected function getCreateFormAction(): Action
{
return parent::getCreateFormAction()
->requiresConfirmation();
}
protected function getCreateFormAction(): Action
{
return parent::getCreateFormAction()
->requiresConfirmation();
}
this code doesnt ask for confirmation
Dennis Koch
Dennis Koch8mo ago
You are using simple resources so the creation happens in a modal? Or a separate page?
Ricardo Sawir
Ricardo SawirOP8mo ago
Seperwte page Create record page
Dennis Koch
Dennis Koch8mo ago
The action has no effect on the page. They are two separate things. The page doesn’t know about the settings on that action. You need to apply this on the save action on the Create page
Want results from more Discord servers?
Add your server