Editable Calculation
Sep 12, 2016
By
Calin Fodor
Hello!
I have this problem when trying to create automatic calculations.
The last box ("Total venit lunar") is the sum of the first two boxes ("Venit 1" and "Venit suplimentar") and it change's it's value when you enter a number in the other fields.
The thing is that if I change my mind and I want to edit the second value, for example, it keeps adding in the last box the number I edit (img. 2).
1. 2.
I really hope someone could give me some advice!
Thank you!
4 Replies
Hi Calin and welcome to E-Learning Heroes!
Do you have a .story file or even a sample slide .story file that we could take a look at and understand the set-up and assist.
Add a trigger that resets the total variable to 0 and move that trigger BEFORE the trigger(s) that calculate the total variable.
The trigger that resets the total variable to 0 did not work, as long as I don't have a button, and I needed 2 more triggers.
Thanks to you, I discovered how to do this:
As you can see, I added two triggers before the calculations ones:
1. sets the TOTAL to the second variable when you edit the first one.
2. sets the TOTAL to the first variable when you edit the second one.
Thank you very much for your advices!
Glad you were able to get this figured out Calin :) Thanks for sharing your update and solution.
This discussion is closed. You can start a new discussion or contact Articulate Support.