Set up the graduation so that with score above XX, there is a small form that when submitted sends user data to a script, which generates and emails them a certificate with their name. So, that all works well.
But strange problem, upon hitting submit, it all works, but quiz immediately reverts to initial view (i.e. start quiz view). Added a header redirect to the custom script that the form submits to, and that works as it takes user to a confirmation page – but in between it still shows the start page (and if there is a form error on submit, you never see it, as it goes immediately to that start view – effectively hiding the div where the form would be showing the error).
It’s almost as if the form submit is acting like the ‘restart quiz’ button…
So I can see this is all operated with hidden divs – and obviously something is triggering the script to reset these upon form submit – any thought on where I might look to resolve would be appreciated.
- The topic ‘Added form submit for generating certificate and works, but…’ is closed to new replies.