Run Javascript function after JS validation and Sec.Question

pinkeltje77 10 Jul, 2012
I have tried to hook a javascript function through the custom code action
<?php
$form->form_params->set('jsvalidation_onValidateSuccess', 'trackEvent');
?>

But in combination with the security question action this function is fired whether the security question is right or not.
I need this function to fire at least after the jsvalidation AND a positive security question check.
Is this possible?
GreyHead 21 Jul, 2012
Hi pinkeltje77,

The security checks are run on the server after the form is submitted so there is no way to fire JavaScript from the On Load event after that. What you can do is link the JavaScript to the Thank You Page action so that it is fired after the form processing is complete.

Bob
This topic is locked and no more replies can be posted.