Highlighted

Doing math on user input and displaying

Community Beginner ,
Oct 15, 2019

Copy link to clipboard

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
Correct answer by Lilybiri | 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:

https://elearning.adobe.com/2019/01/calculate-expiry-date-expression-variables/

TOPICS
Advanced

Views

49

Likes

Translate

Translate

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

Copy link to clipboard

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
Correct answer by Lilybiri | 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:

https://elearning.adobe.com/2019/01/calculate-expiry-date-expression-variables/

TOPICS
Advanced

Views

50

Likes

Translate

Translate

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
Most Valuable Participant ,
Oct 15, 2019

Copy link to clipboard

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:

https://elearning.adobe.com/2019/01/calculate-expiry-date-expression-variables/

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Awesome! That's super helpful

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

You're welcome. You'll find a lot of use cases on my blog, but the one I posted a link was only available in the eLearning community. My blog is blog.lilybiri.com.

Likes

Translate

Translate

Report

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