Skip to main content
AadMetz
Inspiring
February 13, 2019
Question

Calculating with fixed value in form

  • February 13, 2019
  • 2 replies
  • 3196 views

I know how I can add different fields.
But now I want to multiply a fixed value with a field.
I have one field and want to multiply that value with 0,29
I tried it with the option Javascript and than:

Field1*0,29

But that doesn't work.

How can I give in this calculation?

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
February 13, 2019

If you want to use JS use this code:

event.value = Number(this.getField("Field1").valueAsString) * 0.29;

AadMetz
AadMetzAuthor
Inspiring
February 13, 2019

Yeh, that one works, tnx!!!!

Bernd Alheit
Community Expert
Community Expert
February 13, 2019

Use simplified field notation:

Field1 * 0.29