I try to use client validation. With rule set as client valid, onsubmit form will generate submit code. How can I fix problem.
When I set:
$form->addRule('money_amount','required','required', null, 'client');
then QuickForm onsubmit here:
<form onsubmit="try { var myValidator = validate_libs_qf_a4048ae7b9c501cc3c5c56f587854f37; } catch(e) { return true; } return myValidator(this);" action="/epesi/process.php" method="post" name="libs_qf_a4048ae7b9c501cc3c5c56f587854f37" id="libs_qf_a4048ae7b9c501cc3c5c56f587854f37">
...
</form>
When I set:
$form->addRule('money_amount','required','required');
then QuickForm onsubmit here:
<form onsubmit="$('libs_qf_6ef9424cb76e4824e79eaf9257b66cfe').submited.value=1;Event.fire(document,'e:submit_form','libs_qf_6ef9424cb76e4824e79eaf9257b66cfe');_chj($('libs_qf_6ef9424cb76e4824e79eaf9257b66cfe').serialize()+'&__action_module__=%2FBase_Box%7C0%2FUtils_RecordBrowser%7Cmain_9aeeab4141de2773f0b52619e8568391%2FSCTV_Acceptance%7C0','Processing...','');$('libs_qf_6ef9424cb76e4824e79eaf9257b66cfe').submited.value=0;return false;" action="/epesi/process.php" method="post" name="libs_qf_6ef9424cb76e4824e79eaf9257b66cfe" id="libs_qf_6ef9424cb76e4824e79eaf9257b66cfe">
...
</form>