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

    Save Post Info To Thank You Page

    Asked by grampers on October 17, 2013 at 05:55 PM

    I have set up a confirmation page following http://www.jotform.com/help/98-Confirmation-Page-Tricks  That requred selecting the custom message option in the 'thank you' configuration area

    Now, I would like to save my POST information upon clicking the 'Complete Submission' button.  According to the instructions here -  http://www.jotform.com/help/213-Send-POST-Data-From-JotForm-Using-PHP-in-Custom-Thank-You-Page  - that seems to require the selection of a custom url in the 'thank you area', but I don't wish to override the custom message option I need for the confirmation page setup. 

    I have used my website Thank You page as the url for the 'Complete Submission' button. But when I click to Complete Submission, I remain on my web form page instead of going to the Thank You page where I want to execute my php.  

    I can't figure out what I'm missing. Can you help, please.

     

    POST web form JotForm custom url
  • Profile Image
    JotForm Support

    Answered by guilledutra on October 17, 2013 at 06:30 PM

    Hi,

    could you provide us the name or link of the form, I made a test submission to the standalone version of the form http://www.jotform.com/32827434886870 and I was redirected to your thank you page after clicking on "Complete Submission" button.

    If you have embedded the form in a webpage , could you provide us the link in order to make further investigations.

    Thanks

  • Profile Image

    Answered by grampers on October 17, 2013 at 07:25 PM

    The name of the form is Marketing Message Discovery. 

    Interestingly, I tried clicking on your standalone version (above) and got "Invalid Form URL" 

  • Profile Image
    JotForm Support

    Answered by Welvin on October 17, 2013 at 07:54 PM

    We're sorry. The correct URL is: http://www.jotform.co/form/32827434886870. Please let us know the webpage URL to where the form is currently embedded so we can further check.

    I've made a test submission to your form and was able to redirect to your thank you URL when I clicked the "Complete Submission" button.

    Thanks

  • Profile Image

    Answered by grampers on October 18, 2013 at 11:45 AM
  • Profile Image
    JotForm Support

    Answered by guilledutra on October 18, 2013 at 02:03 PM

    Hi,

    after making a test submission, I was redirected to the thank you page

    If you need the thank you page to be opened in a new window, please change the option(open link in a new window) at the thank you message editor:

    Hope it helps

    please let us know if you need further assistance

    Thanks

  • Profile Image

    Answered by grampers on October 18, 2013 at 02:32 PM

    Thanks for your reply.

    1) I am not redirected to the thank you page at all - instead, it just brings up my form page with the thank you page iframed within it. From your screen capture, it looks like you were not redirected either.

    2)  So, it would seem that unless I select the 'custom url' option in the thank you set up area, the thank you message will always be displayed on the original form page, and the only relevance of inserting the 'thank you' web page url in the 'Continue' button is to identify a page to iframe into the form page. Is my understanding correct?

  • Profile Image
    JotForm Support

    Answered by Welvin on October 18, 2013 at 03:44 PM

    Hi,

    Found what you've said. The custom thank you page is opened into an iframe within the Thank You Message area. And, you are correct.

    I can't think of any possible solution other than changing your "Complete Submission" button target attribute to "New Window or Tab". 

    OR, please try re-embedding your form using our iFrame Method: Getting the Form iFrame Code. See if this changes everything.

    Thanks

  • Profile Image

    Answered by grampers on October 18, 2013 at 06:39 PM

    I guess the question now is whether I can do both of these things:

    1) set up a confirmation page (which requires selecting the custom message option in the 'thank you' configuration area), and then

    2) on 'Complete Submission', send my form POST values to another page to process with a php script (from which the results will be iframed to the 'thank you' message area).  

  • Profile Image

    Answered by Cesar on October 18, 2013 at 07:31 PM

    Hello,  

    From my understanding you want to send POST data from the Thank You page. This should be possible with the following instructions.

    http://www.jotform.com/help/213-Send-POST-Data-From-JotForm-Using-PHP-in-Custom-Thank-You-Page

    I'm not too sure if you have seen this.

    Kindly let us know if you need further assistance. Thank you.

  • Profile Image

    Answered by grampers on October 18, 2013 at 07:49 PM

    What I think I need is so send POST data from the thank you message area of the form page upon clicking the 'Continue Submission' button (http://www.jotform.com/help/98-Confirmation-Page-Tricks  refers). But that's my question - can I have a Confirmation Page AND send POST data somewhere where I can process it? 

  • Profile Image
    JotForm Support

    Answered by EltonCris on October 18, 2013 at 08:30 PM

    @grampers

    You can load your thank you page on the same page not on the iframe if you use the following code on the complete submissions button.

    <a target="_blank" href="javascript:location.target="_blank" href='http://www.site.com/thankyou.html' rel="nofollow""><button>Complete Submission</button></a>

    ----------

    If you use POST DATA, you have to write custom php script that would catch the data and show it in a formatted way just like the same as describe on the confirmation tricks guide. e.g. if the user submits the form, they'd be forwarded to your thankyou.php page where all data are displayed with the buttons for "editing submissions" and "completing submissions". It's pretty much the same as the confirmation page tricks.

     Note that confirmation page here occurs only after the form is submitted. If you want real confirmation links that can be verified thru email, use this app: http://apps.jotform.com/app/submission_verifier

    Thanks!

  • Profile Image
    JotForm Support

    Answered by EltonCris on October 18, 2013 at 08:37 PM

    My bad, the code is correct though our forum always appends the target blank on it. Please get the working code here incase you'd like to use it: http://pastiebin.com/5261d39ee302f

    Thanks and apologies.

  • Profile Image

    Answered by grampers on October 22, 2013 at 01:58 PM

    I'm still trying to figure this out, and I think I need to start again by restating my question.

    I have set up a confirmation page following https://www.jotform.com/help/98-Confirmation-Page-Tricks  That requred selecting the custom message option in the 'thank you' configuration area

    Now, I would like to save my POST information upon clicking the 'Complete Submission' button. 

    I tried to achieve that using  the instructions here -  https://www.jotform.com/help/213-Send-POST-Data-From-JotForm-Using-PHP-in-Custom-Thank-You-Page - that did not work  for me

    I also tried to achieve it using webhook, using the 'instructions' here - https://cms.jotform.com/blog/85-Send-Instant-Submission-Notifications-with-Webhooks - to do so, I activated webhooks, set my webhook url to a thank-you page url, and used that same thank-you page url in the Complete Submission button. On clicking that button, it redirects to the thank-you page, but no POST data is passed to that page. 

    My thank you message includes this:

     <a target="_blank" href="http://www.jotform.co/form.php?formID=32827434886870&amp;sid={id}&amp;mode=edit"><button>Edit Entries</button></a><span style="padding-left: 14px;"><a target="_blank" href="http://generateleads.ca/thank-you/" rel="nofollow" ><button>Complete Submission</button></a></span>

    What am I missing?

     

  • Profile Image
    JotForm Support

    Answered by Welvin on October 22, 2013 at 04:06 PM

    We're sorry for the confusion. Your original question is for when you submit the form and when you click Complete Submission button that stays where the Thank You Message resides. It seems that few of your replies and the last one now refers to saving the data into the Custom Thank You URL - which is not working. 

    Please take note that Send Post Method requires creating the codes into a PHP page. You must do this into a separate PHP file. We'll try to check this for you and get back for our findings. I never done this before by the way.

    I would also appreciate if you can create a new thread for this issue. You can post just an excerpt that elaborates the problem and a short title. This way, the whole team can easily identify your inquiry without having to check and read this thread which is somehow would cause them a confusion and again to avoid returning again another question. Let us know the thread here so we'll be notified and so we can check.

    Thank you for your understanding.

  • Profile Image

    Answered by grampers on October 23, 2013 at 12:07 PM

    At your suggestion, I have opened a new thread here: http://www.jotform.com/answers/282763-After-the-Confirmation-Page#0 

  • Profile Image
    JotForm Support

    Answered by Welvin on October 23, 2013 at 12:44 PM

    Thank you for creating a new thread. We'll be responding you there. Please standby! Cheers!