Using pseudo confirmation page w/payment options

  • Profile Image
    Asked on September 27, 2011 at 11:18 AM


    I appreciate the result of this Advanced Feature Jotform article, about how to create a page for the client to confirm their order before officially submitting. Jotforms is incredibly robust and customizable as it is, and adding that workaround was a brilliant idea!

    I had a few further questions about the 'order confirmation' workaround:

    1. Is it possible to use this feature with a payment module?

    I was thinking that the payment module could either be placed in the first version they see, so they submit payment the first time they submit the form; then the payment module would be hidden (based on a passed URL parameter condition possibly?) if they went back to edit any data. Alternately, could the payment module be placed after the 'submit for preview' feature, such that they would not actually pay til they had approved all submitted data (using similar URL passing mechanism described above). Do either of those seem feasible?

    I've made a sample form using the above workaround (see link below), and wondered if you can tell me how to arrange the "preview order details" around the payment module to make the above idea work (if it's possible).

    2. Or, would it work to post-PHP and add payment module in a new/connected form?

    Would it be possible to provide a confirmation screen to the user before payment this way:
    - user fills out first form, no payment module visible
    - PHP data posts to screen as 'thank you', but it appears to be a confirmation screen, using workaround in article link above
    - at bottom of PHP-data / 'thank you' screen would be a 2nd Jotform that would contain payment module for client to pay for order, which would populate based on passing the PHP info to the new form (or possibly via URL-parameters).

    ?? I know these are all crazy workarounds but if there is some way to make it work, it could be pretty slick!

    3. Also, is there a way for only the last and final email to be sent, at same time as data posting?

    If the user 'submits for preview', then goes back to edit and re-submit, I see that the data posts only once as final form submission (in Reports view), though 2 emails are sent (once for first 'submit for preview', and once for the 'edited submission'). For the sake of filling orders, it would be cleaner if only 1 notification email were sent.


    Thanks very  much for your help. Jotform is an amazing tool, and the support you guys provide is unheard of with other similar companies! Thanks,

    -Cathie R.

  • Profile Image
    Answered on September 29, 2011 at 07:19 PM

    Hello Cathie,

    To answer your questions.

    1.) Unfortunately, making a payment field on your form will kill your form having a confirmation page.  What will happen is that after submission, it will push your page to go to the Payment Gateway immediately.

    2.) In the example, it will not work with PHP $_POST data, unfortunately.  The post data submitted lands on the confirmation page.  The confirmation button is only an anchor link going to your last thank you page.

    Ideally, it might work if you alter your form's "confirmation page" by having it on your own website. Have it in a PHP script and capture all the post data submitted in it.  Then simply parse the captured data. 

    And if you wish to use the submitted data on your final thank you page, simply add some URL parameters on your "confirmation page's" Complete Submission button.  The Complete Submission button is just an anchor href link, so you can simply add parameters like this. ?name=<? echo $name; ?>&address=<? echo $address; ?>

    It's just unfortunate that on your thank you message in JotForm, this won't work as the & sign gets converted to HTML ascii code (&amp;).

    3.) What you can do here is take advantage of your web host's php emailer. Add a php mailer script on your final thank you page and just delete your email notification on your form.

    If you need further assistance regarding this matter, please do let us know.



  • Profile Image
    Answered on September 30, 2011 at 09:40 AM

    Hi Liyam,

    Thanks so much for taking the time to think through the technicalities of each of these with me. I'm not sure which solution(s) we'll go with, but your answer provides some great places to start.

    Once again, another stellar support posting by the JotForm team!! You guys rock!

    -Cathie R.