Forums

Additional form events won't load

jmeidal 26 May, 2017
My form will render the "load" and "submit" events, but not my "Page Two" and "Page Three" events.
https://www.theoakscamp.org/index.php?option=com_chronoforms5&chronoform=Summer_Camper_Registration

(I DID recently upgrade to J!3.7.2, and the latest V5. In addition I noticed my shared server upgraded from PHP 5.6.30 to 7.0.19)

I had not changed the form itself in more than a month. Any suggestions?
jmeidal 26 May, 2017
I made a copy of my form and adjusted some of the items in Setup. It now works to navigate straight to any page or proceed to Page Two.

I took out some of the Data Save elements and an Event Switcher which included a Check Google NoCaptcha.

Here is the code from my Event Switcher.
<?php
if ( !isset($form->data['g-recaptcha-response']) || $form->data['captcha'] != 'passed' ) {
  return 'fail';
}
?>


Does this help?
jmeidal 27 May, 2017
Still looking for help with this issue. I'm pretty sure the PHP code in the Event Switcher is throwing an error since my site upgraded to PHP 7.0.19

Another form with Event Switcher in "on submit" has:
<?php
if (isset($form->data['emailconfirm'])) {
  return 'sucess';
}
?>

Should there be a different code syntax here?
GreyHead 28 May, 2017
Hi jmeidal,

I can't work out what is happening from the info here. The only query I have is the spelling of success - does that match the event name you have set?

Please add a Debugger action and copy and paste the output here.

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