Page breaks and calculations

  • dorsetholidaylets
    Asked on December 18, 2015 at 6:40 AM

    I have a form which I want to use page breaks but when I do the calculations do not work properly between pages. If I take the page breaks out it all works fine.

    The page is below.

  • beril JotForm UI Developer
    Replied on December 18, 2015 at 10:29 AM

    We are sorry for this inconvenience this might have caused. I carefully checked your conditions and I did not encounter any issue. It seems working properly on my side.

    Here is how it works:

    Page breaks and calculations Image 1 Screenshot 20

    If you provide us more details about which part isn't working properly, we can assist better.

    We will wait your answer.

  • dorsetholidaylets
    Replied on December 18, 2015 at 12:39 PM

    HI thanks for your reply.

     

    If you look at the sample you created above you will see that the "Total cost of all Riders" before you clicked on NEXT was £45 while the "Total costs Including your Donations" and the Total for payment on the next page was only £20 whereas it should have been £45.

  • dorsetholidaylets
    Replied on December 18, 2015 at 12:55 PM

    I have just noticed another odd happening with this form with Page breaks:-

    If you enter 2 or more riders and then click NEXT for the next page and then click BACK you will see that the Total Amount of all Riders on the first Page is incorrect and is only the total of the first rider and the last rider on the page has no cost even though the route is still selected and the cost was shown before you clicked Next and Back.

     

  • Sammy
    Replied on December 18, 2015 at 2:19 PM

    I have investigated your form and found the cause of the issue.

    The field for the subsequent riders are calculation field with not default value, when you switch back to the first page this field try to recalculate and since they have no values defined in them they return  blank result thus clearing your initial values.

     

    I would recommend you switch these fields to a normal text fields, the best approach will be to clone your form and edit the clone so that you do not lose any collected data.

     

    Here is a sample for with the suggestion applied for the second and third rider https://form.jotform.com/53515682208961

     

    You can clone it to your account for investigation http://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

     

  • dorsetholidaylets
    Replied on December 18, 2015 at 5:29 PM

    Hi Sammy thanks for your reply, that has fixed the problem. It also sorted out other problems on other fields which were Calculation fields rather than text fields. I did not think you could hold values in text fields.

    I am still at the testing stage so not worried about lost of data.

  • victor
    Replied on December 18, 2015 at 7:15 PM

    On behalf of my colleague, you are welcome. If you have any other issue during your testing, please let us know. We will be glad to assisting in resolving your issue.