Highlighted

## Doing math on user input and displaying

Community Beginner ,
Oct 15, 2019

Copied

My company is considering Captivate for some of our existing customers, but also to cater to potential new customers. What I mean is that we would like a potential customer to log into our LMS-solution as a public person (no username/password), and view a multi part video that can explain how much the person can save using our software. The logging in part is no problem, so my question has more to do with whether it's possible to have a user watch the first part of a video, be asked to input a value (monthly expenditure for instance), and get a calculation or even a graph in return. I assume there'll be some javascripting involved, which is fine, but I'm wondering if anyone has some input on the idea.

Most Valuable Participant
| Most Valuable Participant

Sure you can. Use a Text Entry Box or a Scrolling text interaction to capture the user input. Depending on the complexity of the mathematical operations you may not even need JS, but can do it with advanced or shared actions. In those actions the four mathematical operators are available. Showing the result is done by inserting the variable containing the result in a text container. Here is an example of a calculation only with advanced actions:

TOPICS

Views

49

Likes

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

## Doing math on user input and displaying

Community Beginner ,
Oct 15, 2019

Copied

My company is considering Captivate for some of our existing customers, but also to cater to potential new customers. What I mean is that we would like a potential customer to log into our LMS-solution as a public person (no username/password), and view a multi part video that can explain how much the person can save using our software. The logging in part is no problem, so my question has more to do with whether it's possible to have a user watch the first part of a video, be asked to input a value (monthly expenditure for instance), and get a calculation or even a graph in return. I assume there'll be some javascripting involved, which is fine, but I'm wondering if anyone has some input on the idea.

Most Valuable Participant
| Most Valuable Participant

Sure you can. Use a Text Entry Box or a Scrolling text interaction to capture the user input. Depending on the complexity of the mathematical operations you may not even need JS, but can do it with advanced or shared actions. In those actions the four mathematical operators are available. Showing the result is done by inserting the variable containing the result in a text container. Here is an example of a calculation only with advanced actions:

TOPICS

Views

50

Likes

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 15, 2019 0
3 Replies 3
Most Valuable Participant ,
Oct 15, 2019

Copied

Sure you can. Use a Text Entry Box or a Scrolling text interaction to capture the user input. Depending on the complexity of the mathematical operations you may not even need JS, but can do it with advanced or shared actions. In those actions the four mathematical operators are available. Showing the result is done by inserting the variable containing the result in a text container. Here is an example of a calculation only with advanced actions:

Likes

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 15, 2019 1
Community Beginner ,
Oct 15, 2019

Copied

Likes

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 15, 2019 0
LATEST
Most Valuable Participant ,
Oct 15, 2019