Forum Discussion

AndrewGlennie-3's avatar
AndrewGlennie-3
Community Member
2 days ago
Solved

How to link sliders for an interactive budgeting activity

Hi People,

My SME has a great idea for an interactive budgeting activity where the learner move 5 sliders, one for each budget category to see how adjusting one might affect the total much like this:

I've been able to get only a little way with the help of Copilot and some videos but they all appear to earlier versions of the trigger wizards and I am a bit stumped with how to do things like:

  • Calculate the total (an area where any tutorials I have seen seem to be older versions)
  • Prevent a slider from exceeding the total

Criteria:

  • Each slider value should be no more than 100
  • The sum of the slider values should be no more than 100

I've attached the project file for reference to my lack of skills in this area.

Andrew

  • Have a look at the attached example and see if that gets you started. I added triggers to ensure that the remaining budget is recalculated every time a slidervariable changes. If the budget is exceeded, a warning layer is shown and then the slider that was moved last is set to the maximum allowable value. Hope that's what you wanted.

2 Replies

  • MichaelHinze's avatar
    MichaelHinze
    Community Member

    Have a look at the attached example and see if that gets you started. I added triggers to ensure that the remaining budget is recalculated every time a slidervariable changes. If the budget is exceeded, a warning layer is shown and then the slider that was moved last is set to the maximum allowable value. Hope that's what you wanted.

    • AndrewGlennie-3's avatar
      AndrewGlennie-3
      Community Member

      Thank you so much Michael. Exactly what I was looking for. I'm thinking your work might be a good example to post in the Examples section.