Skip to main content
Participant
October 12, 2023
Answered

Calculation does not work properly

  • October 12, 2023
  • 2 replies
  • 968 views

I am making a form to calculate a certain cost. I have made fields where the user can fill in a certain distance in kilometers. There is one calculation that adds all of those fields up (which works normally). Then there is another calculation that multiplies the total distance with a certain number (in this case 0.4237). But for some reason this calculation doesn't work properly. It's as if it's delayed. When I give in a number in the distance field, it adds up in the TOTAL field. But it doesn't multiply in the other field. ONLY when i give in a second distance it starts multiplying, but only the previous number. This happens everytime: you give in the 3rd number it multiplies the previous 2. Very confusing. For reference I will put the PDF form in this post.

PS I have no experience in Java. 

This topic has been closed for replies.
Correct answer Bernd Alheit

Change the field calculation order.

2 replies

Tijl.sjpAuthor
Participant
October 12, 2023

Thanks, had to look up how to do that but it worked.

 

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
October 12, 2023

Change the field calculation order.