Forum Discussion

UmaMaheshRajago's avatar
UmaMaheshRajago
Community Member
2 months ago

Help with Triggers for Multiple Country Selection in Storyline

Hi everyone,

I’m building an eLearning interaction in Articulate Storyline 360 where learners select two countries, and based on their combination, they should be directed to the correct map slide.

Here are the rules I need:

  • If AU + (CA or NZ or UK or IR or US) → Go to Map_01
  • If CA + US → Go to Map_01
  • If CA + (NZ or UK or IR) → Go to Map_02
  • If NZ + (UK or IR) → Go to Map_03
  • If US + (NZ or UK or IR) → Go to Map_04
  • If a single country is selected:
    • AU → Map_01
    • CA → Map_02
    • NZ / UK / IR → Map_03
    • US → Map_04

I have tried creating True/False variables for each country and writing triggers like:
Jump to slide Map_01 when user clicks Next if AU = True and CA = True

But no matter what I do, Storyline always sends me to Map_01 (even if the wrong combination is selected).

👉 My questions:

  1. What’s the correct way to structure these triggers?
  2. Should I create combination variables (like AU_CA = True) instead of relying on multiple conditions?
  3. Is there a cleaner way (like a decision table or JavaScript trigger) to handle multiple combinations without Storyline confusing the order?

Any step-by-step advice or screenshots from someone who has built a similar setup would be really helpful.

Thanks in advance!

8 Replies

  • Hi,

    You might start with an approach using states, instead of variables.

    If you have images, or buttons, for the different countries, you could create "Selected" states for each one. Choose the built-in "Selected" option when you create a new state.

    Then you might have a "Submit" button for submitting your choice.

    Then, you could write triggers for which buttons were selected, similarly to how you have it in your post. For example, Jump to slide Map_01 when the user clicks "Submit," on the Conditions that AU is selected and CA is selected. Then, copy/paste that trigger and change "CA" to "NZ". Then, copy/paste that trigger and change "NZ" to "UK," etc.

    Repeat by creating triggers for the various combinations you need.

    For the single trigger, use the same Conditions, except only use one country and not multiple ones.

    • UmaMaheshRajago's avatar
      UmaMaheshRajago
      Community Member

      Hi KendalRasnake-1​,

      Thanks for sharing this approach. I actually tried working with states, but controlling the selected states for multiple countries is quite difficult. Since the user can choose any number of combinations, it becomes hard to restrict or manage their selections effectively. That’s why I was exploring alternatives.

  • MichaelHinze's avatar
    MichaelHinze
    Community Member

    Have a look at the attached and see if that's what you wanted. I toggle a True/False variable that signifies whenever a button was clicked. A numeric variable counts how many buttons are selected to make sure that only two buttons can be selected at the same time. And a text variable is used to identify the map, based on the current selections. Hope that makes sense.

    • UmaMaheshRajago's avatar
      UmaMaheshRajago
      Community Member

      Hi MichaelHinze,

      Thank you so much for your detailed explanation and for sharing the approach. I really appreciate the time you’ve taken to guide me through this.

      I’ve attached my project file here for your reference, so you can better understand my exact requirement. It would be a great help if you could have a quick look and let me know your suggestions or corrections.

      Thanks again for your support!

       

  • You have not added the triggers on the first slide. Also, wanted to check why do we need slide 2, we can directly redirect the learners from slide 1 to Map 1/2/3/4 based on their selection.

    • UmaMaheshRajago's avatar
      UmaMaheshRajago
      Community Member

      Hi ModassarWarsi​,

      Thanks for pointing that out. Slide 2 is intentionally kept because it contains an instruction/video for the learners. Once they complete this, the navigation will proceed to the respective map based on their selection from Slide 1. 

  • Please refer to the attached SL file. As we cannot use brackets to check complex conditions for selection, here I have added multiple triggers to check each pair. However, I have not added the condition for checking the selection of more than two countries.

  • Thanks ModassarWarsi​, I’m currently working with triggers to figure out the exact solution, since we can’t restrict a user to selecting only two countries. I’m creating a country-combination variable and building the logic around that. Really appreciate your help once again!