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 Koch10mo ago
I don’t understand the question.
Ricardo Sawir
Ricardo SawirOP10mo 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 Koch10mo ago
You are using simple resources so the creation happens in a modal? Or a separate page?
Ricardo Sawir
Ricardo SawirOP10mo ago
Seperwte page Create record page
Dennis Koch
Dennis Koch10mo 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

Did you find this page helpful?