• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Doing math on user input and displaying

Community Beginner ,
Oct 15, 2019 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.

TOPICS
Advanced

Views

184

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
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 15, 2019 Oct 15, 2019

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/

Votes

Translate

Translate
Community Expert ,
Oct 15, 2019 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/

Votes

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
community guidelines
Community Beginner ,
Oct 15, 2019 Oct 15, 2019

Copy link to clipboard

Copied

Awesome! That's super helpful

Votes

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
community guidelines
Community Expert ,
Oct 15, 2019 Oct 15, 2019

Copy link to clipboard

Copied

LATEST

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.

Votes

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
community guidelines
Resources
Help resources