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

    Can I gather data when the user hits page break next?

    Asked by weightwins on November 28, 2012 at 10:15 AM

    I need to ask for quite a bit of data from a user. One of the things I'd like to do is discover if someone gives up halfway through and email them the next day, offering a special discount (or similar).

     

    I've seen sites use this techneque - they ask for your name and email address first, then get you to fill in other details later. I've done something similar with the page break function, but is there any way for me to see the data filled in at this point, but where the form was abandoned?

    Page URL:
    http://www.playweigh.com/members

    next email name fill
  • Profile Image
    JotForm Support

    Answered by jonathan on November 28, 2012 at 11:27 AM

    Hi

    If my assumption is correct you were referring to the data in the Main form that was described on this guide "How-to-Save-Forms-to-Continue-Later"

    As is now, the only submissions you initially can collect where those from the 1st form (Name, Email) because it was the only submitted form. In contrast the main form was not yet submitted, so you cannot get yet the collected data.

    But I think you can intercept to the point where the main form was abandoned by filling in the correct email address in the session using the email involved from the first form.

    Test this 1st form http://www.jotformpro.com/form/23258590050955

    Then on the main form, fill-in at least 2 questions.. then copy the URL (i.e. http://www.jotformpro.com/form/23258808254963?session=jonathan@mailcatch.com) take note of the session + email address

    If you paste this URL to the browser, I think you will be able to view the data up to where it was abandoned.

    Remember you can always know the email address involved since you should get it from the 1st submitted form.

    Hope this help. Please inform us if you have further inquiry.

    Thanks.

  • Profile Image

    Answered by weightwins on November 28, 2012 at 11:58 AM

    Hi Jonathan,

     

    Thanks for the help. That's not quite what I meant. I'm looking to get the data myself, not return it to the user (although that is helpful).

    If you look at this form, you'll see that I initially ask people for their name and one form of contact detail, then use a page break to move to the next section of the form.

    I worry that some members are filling in this first page, but then getting to the second page and (not finding the question they want) leaving.

    I'd like to know if someone gets to the second page but doesn't submit that form, so that I can contact them directly.

    Is this possible?

  • Profile Image
    JotForm Support

    Answered by jonathan on November 28, 2012 at 12:52 PM

    Hi,

    I would like to ask though if the contact details(1st page) are the primary only required data. I meant, even if the user abandoned to the 2nd page onward, as long as you get the contact details , then that is enough data.

    If this is the case, I am really quite convince that the 2 forms save trick is an appropriate solution -- the First form will give you the contact details already.. the Main form will be question/answer form.

    However you may have your reason for not taking this method. And I understand that =)

    Here is another suggestion I think that can work also.

    Please check this guide this time Prepopulating-the-fields-to-your-JotForm-via-URL-parameters

    The idea will still use 2 forms, -- its like the 1st page of your current form will be the first form.. when this 1st form is submitted, you will use the Thank you page to redirect it to the Main form(2nd page). The Main form, can have the Name, email fields pre-populated already form the URL of the 1st form.

    You will always get the Name, email, or contact number data because it is always submitted on the 1st form.

    Hope this help. Inform us if you have any other idea/input.

    Thanks.

     

  • Profile Image

    Answered by weightwins on November 28, 2012 at 12:59 PM

    Thanks - I'll give this a try!

  • Profile Image

    Answered by weightwins on November 29, 2012 at 04:49 AM

    OK, I think I'm most of the way there. I've got the first form here:

     

    http://form.jotformpro.com/form/23331836219957

    And I've set the 'thank you' URL to the second form here:

    http://form.jotformpro.com/form/23331584603954?playerName={playerName}&email3={email3}&mobileNumber14={mobileNumber14}&name[first]={name:first}&name[last]={name:last}

    It's half working - the fields are being populated - but they're just including the variable name (so "{playername}" rather than the data from the first form.

    What've I got wrong?

     

    Thanks!

  • Profile Image
    JotForm Support

    Answered by idarktech on November 29, 2012 at 06:37 AM

    Hi,

    Sorry to say but it can't work on Thank you Custom URL, you have to add the prepopulating URL on Thank you Message instead so user's could click on it. (Unfortunately thank you message doesn't auto-redirect unlike the custom URL, so the user should click on the link)

    Thanks!

  • Profile Image

    Answered by weightwins on November 29, 2012 at 06:40 AM

    Ahh. That's a shame as it now makes it unusable - I want it to appear one form, not two. It's got to be part of the same system. I could use a javascript redirect, but it's now getting very complicated and I'm already worried about how much Javascript this form relies on.

  • Profile Image
    JotForm Support

    Answered by jonathan on November 29, 2012 at 06:51 AM

    @weightwins

    Hi, I owe you an apology for this -- for the confusion on the Thank You page redirect.

    But are you saying that you can use the javascript via the form's source code?

    If you can host the form on your own website and make use of its source code, there is a lot of flexibility to manipulate the form using client side javascript code.

    If you can confirm this, I will assist you achieve what you require.

    Thanks.

  • Profile Image

    Answered by weightwins on November 29, 2012 at 07:01 AM

    I'm not sure if I know the answer, Jonathan. I know, let's start from the start.

    I have a form hosted here:

    http://www.playweigh.com/join.html

    People sign up to our service using this form. At the moment, only 1 person has got all the way to the end, but I've seen on Analytics that 8 or so have got to the page. At least some of them may have started to fill in the form.

    There are two things I'd like to be able to do:

    1. Get in touch with people who enter their email address but don't go further

    2. Allow people to resume entering their data if they stop halfway through.

    1 is the most important; 2 is a "nice, but not essential" addition.

    The form is currently embedded on the /join page using the Javascript embed, with a noscript bit that links to the form directly on jotform. I think I am able to host the form directly, but I don't want to be in a position where someone without JavaScript can't sign up, as lots of our users visit from mobile phones.

    The 2-form trick page warns that if you have lots of drop-down boxes it won't work; I don't know if my form counts as 'lots' but it has at least 7.

    I hope some of this helps!

  • Profile Image
    JotForm Support

    Answered by jonathan on November 29, 2012 at 07:19 AM

    Thank you for such detailed explanation.

    But I test the form in your website just now... #1 is achieved already? Am I correct on this observation?

    You made the submit button like a Next button, and all of the personal info you need are right on the 1 page. When next(submit) is clicked on, you get the important data you need.

    For #2 , as is now, the only viable solutions are those that we have discussed already.

     

    The 2-form trick page warns that if you have lots of drop-down boxes it won't work; I don't know if my form counts as 'lots' but it has at least 7.

    I am not sure about this yet. I have not encountered this warning yet on some of the same forms I have created in the past. I will have to test using your form on this.

    Thanks.

     

  • Profile Image

    Answered by weightwins on November 29, 2012 at 07:27 AM

    There are currently two phases; my details and payment details.

     

    What I was thinking was to separate the form into 3:

    Page 1 only asking for name and email (maybe mobile),(I get sent a JotForm email)

    Page 2 asking the other details (height, weight, etc) (I get sent another JotForm email, so does the member)

    Page 3 asking for payment.

     

    So, I tried using three forms to do this:

    1. http://jotformpro.com/form/23331836219957

    2. http://jotformpro.com/form/23331584603954

    3. (PayPal or GoCardless form)

    ...but I can't get them to communicate without a 'OK, now click here' page in the middle. Is there a way to enable data pass-through on the URL?

  • Profile Image

    Answered by weightwins on November 29, 2012 at 07:31 AM

    Does the 'thank you' page support PHP? Could I embed:

     

    <?php header('Location: http://form.jotformpro.com/form/23331584603954?playerName={playerName}&email3={email3}&mobileNumber14={mobileNumber14}&name[first]={name:first}&name[last]={name:last}'); exit; ?>

    Or would it need to be client side:

    <script type="text/javascript">window.location='http://form.jotformpro.com/form/23331584603954?playerName={playerName}&email3={email3}&mobileNumber14={mobileNumber14}&name[first]={name:first}&name[last]={name:last}';</script><noscript>If you are not redirected in 10 seconds, please click <a target="_blank" href='http://form.jotformpro.com/form/23331584603954?playerName={playerName}&email3={email3}&mobileNumber14={mobileNumber14}&name[first]={name:first}&name[last]={name:last}'>here</a>.</noscript>

  • Profile Image

    Answered by weightwins on November 29, 2012 at 07:38 AM

    OK, it doesn't look like the Thank you message can support JavaScript or PHP - is there any other way of passing this data on to the next page? Is it something you could enable easily?

  • Profile Image
    JotForm Support

    Answered by jonathan on November 29, 2012 at 07:51 AM

    Please check this article -How-to-Post-Submission-Data-to-Thank-You-Page 

    and this -How-to-Insert-Update-Submissions-to-Your-MySQL-Database-Using-PHP

    Javascript or PHP are the two programming languages that you can use in JotForm.

    This simply requires you to have PHP or javascript enable website.

  • Profile Image

    Answered by weightwins on November 29, 2012 at 07:53 AM

    Yes, but it's your page, not mine, that requires the code. So that the code is passed over I need to use your "Thank you" page, but your "Thank you" page won't support the redirect code.

  • Profile Image

    Answered by weightwins on November 29, 2012 at 07:58 AM

    To be able to pass data, it needs to go to your 'thank you' page, not my site. Unfortunately, your 'thank you' page doesn't seem to support scripts of any sort, including JavaScript, so I can't have the page take an action automatically - that action being passing the data on to the next form.

     

    This is too complicated. Isn't there a way to do this natively?

  • Profile Image
    JotForm Support

    Answered by jonathan on November 29, 2012 at 08:04 AM

    The thank you page can only redirect to another page (a page on your website).

    But if you have PHP on your end, you can capture the form's POST data on the target page (that have PHP instructions) on your end. 

    I thought you asked previously about the PHP on thank you page., so, I was assuming that you have PHP enable on your website server.

    Thanks.

  • Profile Image

    Answered by weightwins on November 29, 2012 at 08:06 AM

    Thanks - but no, unfortunately not. If I did, I'd just create the form myself!

    I think the only way we can solve this is if we can somehow either accept scripts on the thank you page or pass data through on the redirect URL. Can either of these be implemented easily?

  • Profile Image
    JotForm Support

    Answered by jonathan on November 29, 2012 at 08:25 AM

    I understand.

    But I really cannot see any other way to do the form's code customization you need, except using the form's source code and alter the submission routine and thank you page.

    At the most, you may also want to check if having the license application viable there are other products from this site.

    In my spare time, I will try to create a demo form that mimic the requirement that you need using both the form's code and the save continue form later method.

    I am not promising anything, but If I have it, I will update this thread possible within the 2 days.

    Thanks.

  • Profile Image

    Answered by weightwins on November 29, 2012 at 09:04 AM

    Thanks Jonathan, I appreicate the help. I'm afraid I'm not able to run PHP on my site, but I will look to see what else we can do.

  • Profile Image

    Answered by honestspace on March 04, 2015 at 05:52 PM

    Has there been any other answers to this problem?  I am confused reading all of the above and I have exactly the same issue.

    Thanks

     

  • Profile Image
    JotForm Support

    Answered by jonathan on March 04, 2015 at 06:10 PM

    @ honestspace

    We will resolve your question here http://www.jotform.com/answers/527184

    Thanks.