Forums

Validate Submission Twice

GoleyC 18 Jun, 2009
I've got the form setup and it works great, it return the values of the form in a confirmation page and also emails them perfectly.

However, I would like to have the form double check the entries. Bascially, the user is showing the pre-confirmation page with the data and then the user has a chance to edit the data before they actually send it. Is that possible, I've yet to uncover this feature if so.

If possible, instructions on how to set it up would be great.
GreyHead 18 Jun, 2009
Hi GoleyC,

It sounds as though you need to use the Confirmation Page plugin.

Bob
GoleyC 18 Jun, 2009
Thanks for the info. I've setup the confirmation page and when the form is submitted the user can review their information. However, if one needs to makes correction and they hit the back button, the information they just entered is no longer there. Is there a way to populate the form with the already entered information so they can correct only the information they need to correct without re-entering all the information again?
GoleyC 18 Jun, 2009
After some more searching we've found this, 'Republish fields if error occured' and have selected Try to Republish.

This works great when you need to edit a mistake in the submitting information. However, an odd side-effect is the Confirmation page after a successful submit goes to a blank white page instead of showing the confirmation page we have setup. We still get the email with the information submitted, but the blank white page is troublesome.

What would cause this and how to fix?
GreyHead 19 Jun, 2009
Hi GoleyC,

Does the blank white page have the template showing - or is it 100% white?

The former sounds like the normal ChronoForms 'thank you' page ( you can add content by putting PHP + HTML in the OnSubmit boxes). The latter is a sign of PHP Fatal Error :-( (Set site error reporting to Maximum and you'll probably see an error message.)

Bob
GoleyC 19 Jun, 2009
Here's the error output.

Notice: Undefined variable: MyPlugins in /home/atv/public_html/content/components/com_chronocontact/plugins/cf_confirmation_page.php on line 173

Fatal error: Call to a member function runPlugin() on a non-object in /home/atv/public_html/content/components/com_chronocontact/plugins/cf_confirmation_page.php on line 173


Where do we go from here?
GreyHead 20 Jun, 2009
Hi GoleyC,

Please replace the Plugin with the attached version. I've added
$MyPlugins    =& CFPlugins::getInstance($MyForm->formrow->id);
at line 122.

There is a new version of the plugin due for release by Max shortly and I've checked that this bug has been fixed in that.

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