Calculations on input fields

This is probably pretty simple but I couldn’t seem to get this to work.

I am trying to do calculations an an input field.

In this case, the form has default values. When the user enters a value (on first field only), it maintains the same ratio, that is:

  • first field i= x
  • second field = x+1
  • third field = x+2

The thing is, I want it to calculate automatically, as soon as the user enters values, without pressing enter keys/button.

edit default then calculate.rp (48.2 KB)

Hi!

Here you go. The condition tests if the field is numeric before attempting the addition. If you are new to expressions, this Axure help page is very good.

edit default then calculate.rp (50.2 KB)

1 Like

This is excellent. Exactly what I need. Thank you! :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.