What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Using pseudo confirmation page w/payment options

    Asked by lindar on September 27, 2011 at 11:18 AM

    Hi,

    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.

    Page URL:
    http://www.jotform.com/form/12632359854

  • Profile Image
    JotForm Support

    Answered by liyam 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.

    Thanks,

    liyam

  • Profile Image

    Answered by lindar 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.