Nittro – po submitu se formular vyresetuje
- tomaskrejci
- Člen | 25
ahoj,
prosim o radu s jednou veci – mam komponentu formulare:
{block content}
{control settingsForm}
{/block}
formular
<form n:name="form" data-validation-mode="live" data-ajax="true" data-history="false">
{input title}
</form>
v php
public function createComponentSettingsForm(): SettingsForm
{
$control = $this->settingsFormFactory->create($this->export);
$control->onSuccess[] = function (): void {
$this->redrawControl('dummy');
$this->postGet('this');
};
return $control;
}
formular ani zadne snippety nechci po submitu prekreslovat, proto prekresluji „dummy“ snippet. Po submitu, resp. po dokonceni ajaxu se ale data ve formulari vyresetuji. Netusite proc?
Editoval tomaskrejci (24. 1. 2022 10:47)