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

    form within a form, missing submission info

    Asked by lunarplaytime on December 05, 2013 at 08:19 PM

    I put multiple prices (which are donation amounts) in one form, and then put that form within a donation form so I could have the total $ amount be a donation (not producs) so as to not have sales tax added in paypal. Now it appears I am not getting any of the information entered on the first form on the submission list. Did I do something wrong in the set up? I really thought I finally had it working right.

    Page URL:
    http://form.jotformpro.com/form/33376988784982

    missing submission prices donation tax one form
  • Profile Image
    JotForm Support

    Answered by Welvin on December 05, 2013 at 09:13 PM

    Hi,

    Unfortunately, the current form setup won't capture the information submitted to this form: http://www.jotformpro.com/form/33376640834963.

    You only had the submit button to this form: http://form.jotformpro.com/form/33376988784982, therefore, when you submit, only the information on this form will be sent to your email. 

    You may consider this method, the URL Parameters;

    1. Instead of the Paypal Field, use the Checkbox Field and setup the membership levels there. Don't put decimal places. Example first form: http://www.jotform.co/form/33388080523858. You'll see the total field which is read-only. When you submit to this form, you will see the Thank You Message Page, click on the link to move forward to the second form.

    2.  Add all the required information to the second form and add the Donation Paypal Field. Example: http://www.jotformpro.com/form/33388356211959.  You'll see on this field, the donation field is populated per the total value from the first form.

     

    Please test the form to see the output of this workaround.

    Thanks

  • Profile Image

    Answered by lunarplaytime on December 06, 2013 at 10:29 AM

    Ok, that looks great. But how do I get the total field to function with text? I've begun a new form with the checkbox field but when I add the total field I don't understand what I'm supposed to put in the calculate field to make it work. Here is my new form below.

    http://form.jotformpro.com/form/33393726294967

    <script type="text/javascript" src="//form.jotformpro.com/jsform/33393726294967"></script>

  • Profile Image
    JotForm Support

    Answered by Welvin on December 06, 2013 at 11:35 AM

    I've fixed it for you. The formula should be like this:

    The first form should have a submit button so I add one. 

    Now, you should also have the second form that would capture the total value from the first form. I clone my form to your account. The form URL: http://www.jotformpro.com/form/33394210304948. Then added the URL parameters to the first form. This is now the thank you url of the first form:

    http://www.jotformpro.com/form/33394210304948?totalPayment[price]={total}

    Kindly submit a test entry so you can see the output. Let us know if you are confused or if you need further assistance.

    Thanks

  • Profile Image
    JotForm Support

    Answered by Welvin on December 06, 2013 at 11:41 AM

    Just a clarification, submit a test entry to the first form: http://form.jotformpro.com/form/33393726294967. After you hit submit, you will automatically redirected to the second form with the total value selected from the first form. You will see the total at the bottom of the second form.

    Thanks

  • Profile Image

    Answered by lunarplaytime on December 06, 2013 at 11:52 AM

    Oh, thank you so much! I had actually come up with that code before but for some reason my system kept freezing so I thought it must be wrong. Turns out it was just my system at the moment. I really appreciate your expertise.

  • Profile Image

    Answered by lunarplaytime on December 06, 2013 at 12:05 PM

    Now the only thing is that when I hit submit on the first form I am getting an email telling me there has been a submission. Of course, this is double data. I don't want it to register a submit until the second form. Is there a way to change that?

  • Profile Image
    JotForm Support

    Answered by Welvin on December 06, 2013 at 01:03 PM

    Unfortunately, that is part of the workaround to submit to the first form. There is no way we can capture the total if we don't submit the first form.

    Another method would be to use the form source codes (How to Get Form Source Codes) then add a custom Javascript that would pass a value from one field to another field. Now, you will have to combine everything to one form. Example Form: http://www.jotformpro.com/form/33395565505965.

    Example output form source codes:

    https://shots.jotform.com/welvin/pages/lunarplaytime.html

     

    Thanks

  • Profile Image
    JotForm Support

    Answered by Welvin on December 06, 2013 at 01:17 PM

    If you want the source codes method. Then please kindly follow the process:

    1. Clone the final form: http://www.jotformpro.com/form/33395565505965 by following the same guide above given.

    2. Get the source codes: How to Get Form Source Codes

    3. On the source codes, add this custom Javascript Codes: http://pastebin.com/D7M0ju9i right after the end </script> tag:

     

    4. Still, in the source codes, add the following call function at the end of the total field box.

    Function: onkeyup="sync()"

    Add it here:

     

    Let us know if you need further assistance. I can create this for you. Just let me know the form URL after you clone my form.

    Thanks

  • Profile Image

    Answered by lunarplaytime on December 06, 2013 at 02:01 PM

    I was able to get the source code, but I can't make any changes to it in jotform. I pasted it to an editor, made the changes, then tried to paste it back, but it won't accept it. If I simply click in the source code it highlights the whole thing and won't let me edit it there. Here is the url: http://form.jotformpro.com/form/33395504918966

  • Profile Image
    JotForm Support

    Answered by Mike_T on December 06, 2013 at 02:48 PM

    This is right, we can not push modified form source code into the JotForm editor. You will need to use modified code within your web page. It means, that if you change anything on the editor, you will also need to update the code on your web page.

    If something is not clear, please let us know.

  • Profile Image

    Answered by lunarplaytime on December 06, 2013 at 03:09 PM

    Ooohh, now I get it. I never have used the source code on my pages. That's fine. I can definitely handle that. So then when someone pushes the submit button it will register as a submit on jotform? Even though it is a modified form?

  • Profile Image

    Answered by Cesar on December 06, 2013 at 03:44 PM

    Once the user clicks on the submit button the submission will be made updated on your forms submission log. If you need further assistance, do let us know. Thank you.