Skip to main content
Participant
December 26, 2015
Question

Multiplication Question

  • December 26, 2015
  • 1 reply
  • 385 views

I am trying to have a user enter in a number in a text box, then have it multiply it by .07 and then show the answer. It will always be a .07 multiplication, no matter what number they enter in the first box. I am unable to get the "answer" to appear anywhere. So, for example, 150 * .07 = XXXX (whatever the answer is, how can I get that to appear on the same slide?)

    This topic has been closed for replies.

    1 reply

    RodWard
    Community Expert
    Community Expert
    December 27, 2015

    How have you set the interaction up so far?

    If you are using the Text Entry Box to input the value of the number to be multiplied, you can use the Submit button of the TEB to trigger an Advanced Action to perform the multiplication and store the result in a user variable.  But you will need to be inserting that user variable in a text caption or Smart Shape to have it show up on screen somewhere.

    Participant
    December 27, 2015

    Hi Rod! Thanks for responding. I appreciate it! And I just finished watching one of your videos! OK here's how I have it setup so far...and in the background, all I have is a text box and a submit button...so I don't know if I did the advanced actions correctly and how to show the output...I so appreciate your help!!!! Liz Again, what I am looking for is when someone enter's their weight, like 150, they hit the calculate button and the calculate button will calculate it at .07 and then display the answer for them.

    RodWard
    Community Expert
    Community Expert
    December 27, 2015

    OK.Your Conditional Action so far is calculating the weight based on the value of the Current Weight variable times ,07, but there's nothing here so far to indicate that the value of CurrentWeight is being set by text entered into the TEB.

    So you need to make sure that the CurrentWeight variable is the Associated Variable for the Text Entry Box so that anything entered into the TEB will be written to that variable. 

    I am assuming that the v_mult variable must be the one you want to display on the slide.  If so, then you need to set the ON Success action of the TEB to execute your Conditional Action, and you need to have a Text Box or Smart Shape somewhere on the slide that has the v_mult variable inserted so that the value of the variable will be visible to users at runtime.