I have tried to hook a javascript function through the custom code action
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?
<?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?
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
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.