Multiplying two input fields

pvalleley3585
pvalleley3585 Community Member Posts: 17
I've been trying for ages to simply multiply two input fields - thought it would be simple (but not for me it seems)!

I've tried following two sets of instructions found on your site (below) and still not managed this.

<span style="color: #000000; font-family: 'Arial',sans-serif; font-size: 12pt;">1. add input field A (variable A)</span>
<span style="color: #000000; font-family: 'Arial',sans-serif; font-size: 12pt;">2. add input field B (variable B)</span>
<span style="color: #000000; font-family: 'Arial',sans-serif; font-size: 12pt;">3. add text field named “Result-Text”</span>
<span style="color: #000000; font-family: 'Arial',sans-serif; font-size: 12pt;">4. add variable named “Result”</span>
<span style="color: #000000; font-family: 'Arial',sans-serif; font-size: 12pt;">5. add button called “Plus” with two actions:</span>
<span style="color: #000000; font-family: 'Arial',sans-serif; font-size: 12pt;">5.1. set variable “Result” to VAR(A) + VAR(B)</span>
<span style="color: #000000; font-family: 'Arial',sans-serif; font-size: 12pt;">5.2. change content of “Result-Text” to variable “Result”</span>
<span style="color: #000000; font-family: 'Arial',sans-serif; font-size: 12pt;">6. repeat step 5 for subtraction, division, multiplication or any other math action

</span>

<span style="color: #000000; font-family: 'Arial',sans-serif; font-size: 16px;">1.</span>
On: Click
Action: Modify variable
Target: results
Type: Set equal to
Value: VAR(Entry_0001) (Insert the correct name of the variable associated with the first entry field)
<span style="color: #000000; font-family: 'Arial',sans-serif; font-size: 16px;">2.</span>
On: Click
Action: Modify variable
Target: results
Type: Multiply Variable by
Value: VAR(Entry_0002)

<span style="color: #000000; font-family: 'Arial',sans-serif; font-size: 16px;">3.</span>
On: Click
Action: Change contents
Target: Results Tex Block
Value: results
<span style="color: #000000; font-family: 'Arial',sans-serif; font-size: 12pt;">Can any spell this out in very simple steps it's beginning to drive me mad.

Thanks

Pip
</span>
 

 

 

Comments