- Member | 500
If i change selectbox, or change radiolist, or check checkbox, always it is a new state for form. And form muset be regenerated and as a snippet replaced.
But how to do it if i have validations. I have only one submit button.
Nothing works for me.
I have Nette 2.2.7
$button = $form->addSubmit('save', "adm.buttons.save"); $button->setValidationScope($form['number']); result: Validation scope accepts only Nette\Forms\Container or Nette\Forms\IControl instances
$form['number']->addConditionOn($form['save'], $form::SUBMITTED)->addRule($form::REQUIRED, 'adm.extensions.modal.numberValidation');
also it doesnt work