I have a simple form with two fields:
$form = $app->add('Form');
$f1 = $form->addField('field1');
$f2 = $form->addField('field2');
Now I want to redirect on a second page with parameters from the fields added to the url. But I can’t get that to work.
$form->add(['Button', 'Redirect'])->on('click', $app->jsRedirect(['check','am'=>$field->jsInput()->val()]));
or anything else…
Could anybody provide me with some pointers?