Skip to main content
Participating Frequently
January 14, 2011
Answered

Adding multiple text entries

  • January 14, 2011
  • 1 reply
  • 505 views

I've been trying to figure out how to make captivate total amounts entered by a user. for example, if I want them to enter how much they spend per month in different budget categories and then total those amounts. How could I do that? I set up the variables for about 3 items to test and then tried to write an advanced action to sum the numbers but could only get it to sum two of the three items.

I used Assignement: Estimatedsum (variable) = category 1 (variable) + category 2

but then it doesn't give me the option to add more vaiables, it requires that I add a new line. What am I missing?

Thanks in advance!

Jessica

This topic has been closed for replies.
Correct answer Lilybiri

Hello Jessica,

Which version of Captivate do you use, 4 or 5?

Advanced actions are executed sequentially from top to bottom (and for conditional actions in CP5 the decisions are executed from left to right).

So, if you have to calculate a total to be stored in a variabel v_sum and you have 4 terms, stored in variables v_term1, v_term2, v_term3, v_term4 you need an advanced action with 3 statements (this is in the terminology of CP5)

  • Expression         v_sum = v_term1 + v_term2
  • Expression         v_sum = v_sum + v_term3
  • Expression         v_sum = v_sum + v_term4

After execution of this advanced action you will have the total stored in v_sum
Lilybiri

1 reply

Lilybiri
LilybiriCorrect answer
Legend
January 15, 2011

Hello Jessica,

Which version of Captivate do you use, 4 or 5?

Advanced actions are executed sequentially from top to bottom (and for conditional actions in CP5 the decisions are executed from left to right).

So, if you have to calculate a total to be stored in a variabel v_sum and you have 4 terms, stored in variables v_term1, v_term2, v_term3, v_term4 you need an advanced action with 3 statements (this is in the terminology of CP5)

  • Expression         v_sum = v_term1 + v_term2
  • Expression         v_sum = v_sum + v_term3
  • Expression         v_sum = v_sum + v_term4

After execution of this advanced action you will have the total stored in v_sum
Lilybiri

JDemasiAuthor
Participating Frequently
January 17, 2011

Thanks so much! I'm using Version 4 - I'm going to attempt this and see how that goes.

JDemasiAuthor
Participating Frequently
January 17, 2011

Well, that did the trick! Thanks again so much!