Expand my Community achievements bar.

SOLVED

Using a button on *click to initialize calculation

Avatar

Level 2

What I am trying to do is take my button named CALC and when I click CALC I want it to add Field1, Field2 and Field3 together and output the sum to FieldTotal. I know I need to have this done in click for button but I am not sure how to write the javascript for this. Any help is appreciated!!

1 Accepted Solution

Avatar

Correct answer by
Level 2

I figured it out.

While in CALC under the CLICK option in FORMCALC:

this.resolveNode("FieldTotal").rawValue = sum(Field1, Field2, Field3);

Worked like a charm.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

I figured it out.

While in CALC under the CLICK option in FORMCALC:

this.resolveNode("FieldTotal").rawValue = sum(Field1, Field2, Field3);

Worked like a charm.