Use input fields to create an calcutation

Problem: I want to make an calculation. Where user put in a number like 1 1,5 2,5 etc
Then I have another input box where user can put in anpther value and results display some place on page.

Example from excel:
input1+input2 = total.

So if you could help me wiht basic concept on how to do this I would appriciate it a lot.

ActivePresenter version: 9

OS: Windows

Notes:

Hi,

You might find this topic helpful in addressing your issue: Calculator emulator. It discusses the calculator emulator and could provide some useful insights or solutions related to what you’re looking for.

Regards,

Hi I checked it initally but it do not explain how it is done, it is shown to a git page but this does not have any project so I cant see how it is done.

Here is a very basic example of two input fields and a button to execute the sum of the two numbers to another box.

Hopefully this helps you get started.

sum.approj (280 KB)

2 Likes

Thanks, Greg, for taking the time to work on this and for coming up with a nice JavaScript solution. I just wanted to share another way for those who aren’t familiar with JavaScript - they can do it easily using the built-in events and actions in ActivePresenter.

assign sum = var1, and add var2 to the click button to sum

Regards,
sample.approj (296 KB)

2 Likes

Thank you , I now manage to make my calculation using java script.
One question, why must there be a text in the output box? Could I add a variable and make some solution to show the variable content when I calculated?

I am not sure that I follow the question.

Are you referring to the %sum1% that I have in the output box?

Sum1 is the variable - placing it in-between the percent symbols is what we do so that the content of that box is dynamic. It allows that data to be updated when you change your two values to sum.

That should only be visible in editing mode.