Prepopulation to the 2nd form is not working

  • beatsahead
    Asked on January 30, 2017 at 2:25 PM
    Also the [tot] amount is no longer being sent to the second form.
  • Support_Management Jotform Support
    Replied on January 30, 2017 at 3:07 PM

    I cloned both of your forms and managed to see the tot field being passed accordingly. For testing purposes, I have set the tot field as visible so we could see its value prior to submitting the 1st form.

    Here's how it went from my perspective:

    Prepopulation to the 2nd form is not working Image 1 Screenshot 20

    If you could tell us how to replicate the problem (e.g. which fields to fill out, what options to choose, and so on), let us know so we can have a closer look on why the field is not being passed.

    But from how I see it, the prepopulated URL was setup correctly.

  • beatsahead
    Replied on January 31, 2017 at 3:29 AM

    It seems to be if they select DJ baz the amount is showing in the first form but not being prepoplutated in the second

  • Ashwin JotForm Support
    Replied on January 31, 2017 at 4:07 AM

    Hello beatsahead,

    I did test your form and I am able to replicate the issue you are having. If I selected "DJ baz", second form does not populate the total.

    I did check your second form and found that you have added 2 conditions to insert value in the "tot" field. Please check the screenshot below:

    Prepopulation to the 2nd form is not working Image 1 Screenshot 20

     

    I believe this condition is causing the value to reset since "Calculation" field is not being populated when the users are redirected to second form.

    Can you please check the condition and see if this is required or you can let us know how you want the calculation to be done and we will take a look. 

    Thank you!

  • beatsahead
    Replied on January 31, 2017 at 4:21 AM

    That calculation is used whichever dj option is selected and there is no error with others.

  • Support_Management Jotform Support
    Replied on January 31, 2017 at 4:54 AM

    It indeed shows zero instead of passing the calculation from the 1st form when I select DJ Baz. It works with all the other DJ selections though.

    I'm afraid your calculations are a bit complicated from our perspective since we have no background/idea on how you crafted your logic.

    Can you at least give us an overview of how you're expecting the computation and conditions to work when DJ Baz (Principal) is selected? We'd highly appreciate it if you could be as detailed as possible. Thanks in advance and looking forward to your reply.

  • beatsahead
    Replied on January 31, 2017 at 5:36 AM

    Thanks, it is quite complicated and as it was added to overtime has become convoluted.

    I can't really understand where it's going wrong. All of the other DJ options carry the amount over to the 2nd form.

    There 1st two options children and teen are very straight forward with only one price.

    The other 2 have different base and overtime rates, but aside from that the are calculated into the form the same way.

    The correct amount is showing in tot for Baz, and if i select to make changes on the second form the correct amount is displayed when i select baz.

  • candy
    Replied on January 31, 2017 at 6:56 AM

    Hello,

    I've checked your form on your side.

    Firstly; as I have seen you have set the calculation values with words. This is totally wrong. You can not set there any words as you can see the screenshot below:

    Prepopulation to the 2nd form is not working Image 1 Screenshot 30

     

    I have deleted those wrong configuration that affects the form from that drop-down list.

    I have experienced that when I have chosen the Dj Baz option from the second form it calculates the price as you can see the screenshot below:

    Prepopulation to the 2nd form is not working Image 2 Screenshot 41

     

    However, there is one more issue left: when the second form loading at the beginning, total cost has been shown as 0. I will investigate this issue further.

    Please check your forms and waiting for your comments.

    Thanks.

  • beatsahead
    Replied on January 31, 2017 at 7:02 AM

    Thanks, but that did not appear to be causing any issue.

    The one issue which is left is the one I was asking for help with, when DJ Baz is selected the values aren't being populated in the 2nd form, when anything else is selected they are working correctly.

  • Mike
    Replied on January 31, 2017 at 8:53 AM

    The issue seems to be caused by a dj dropdown on your second form which is not getting a correct value for selected 'DJ Baz (Principal)' option from the first form.

    The option values are different on your forms, please check this on your end.

    form #2

    Prepopulation to the 2nd form is not working Image 1 Screenshot 30

    form #1

    Prepopulation to the 2nd form is not working Image 2 Screenshot 41

    You may try changing the value on your second form from 'DJ Baz' to 'DJ Baz (Principal)'.

  • beatsahead
    Replied on January 31, 2017 at 8:57 AM

    Thank you, that did it.