Forum Discussion

amorrissen's avatar
amorrissen
Community Member
2 days ago

Layers not displaying correctly based on variable value

I have a slide with six Yes/No questions that the user answers with a Yes or No radio button. Based on the combination of the Yes/No selected, a certain feedback layer should display when they click Submit. 

I have assigned a variable for each question (PathQ1, PathQ2, etc.). There is also a variable for totaling all those variables (PathTotal).

When the user selects a No radio button, that question's variable is set to zero.

For the Yes radio buttons, I have assigned the values 1, 2, 4, 8, 16, and 32 for the questions respectively. When the user selects a Yes radio buttons the question's variable is set to it's value (1, 2, 4, etc.) 

When they click Submit, each question's variable is added to the PathTotal variable and the value could be anything from 0-63. Each value represents a unique combination of Yes/No selections. 

I have 8 feedback layers and my triggers are set up to explicitly show a layer when there are certain Yes/No combinations (i.e. values of PathTotal).

For example:

  • Show layer Feedback 1 when the user clicks Submit if PathTotal = value 0
  • Show layer Feedback 2 when the user clicks Submit
    • if PathTotal = value 2
    • or PathTotal = value 4
    • or PathTotal = value 6

The issue is that the correct feedback layers are not being display. With nothing selected (PathTotal=0), Feedback 4 is displayed instead of Feedback 1. Most other combinations do not display correctly either. 

I've attached my project file and a word doc that lists which combinations of Yes/No trigger which Feeback layers and the values required for PathTotal to trigger them.

I've check all the logic and can't find any potential causes. Any help would be greatly appreciated.

Thanks!

 

7 Replies

  • Nedim's avatar
    Nedim
    Community Member

    There’s nothing wrong with your logic but the setup is quite complex and heavy. The calculation itself is already intricate, and on top of that, all the different "When" events appear to be handled on a single base layer, using a large number of "OR" conditions and and placing all the heavy lifting on the Submit button. This creates a fragile system that can easily break under certain conditions.

    While it's possible to patch some of the issues by hiding layers or adjusting trigger order, I don’t see that as a sustainable solution. For example, Feedback Layer 4 is being shown even when Feedback Layers 1, 2, or 3 should be displayed instead. This is likely due to its higher visibility in the layer hierarchy, combined with Storyline’s inability to process all overlapping conditions in real time, especially under the complex setup described above. Simply hiding the incorrectly displayed layer or reordering the triggers doesn’t solve the core problem. Without restructuring the logic and reducing the load on the base layer, similar issues are likely to continue occurring.

    I've attached another version (Slide 2) to show how I would approach this. In this version, I created a dedicated Calculation layer that opens when the user clicks Submit.

    In this setup, the base layer is responsible only for managing user input — specifically collecting PathQ values through the selection and deselection of radio buttons.

    The actual evaluation logic is moved to a separate Calculation layer, which is triggered when the user clicks Submit. This layer fetches the current PathQ values, performs the necessary logic, and sets the appropriate True/False feedback variables (e.g., Feedback_1, Feedback_2, etc.) based on defined conditions.

    Each feedback variable is linked to a specific scenario, and when one of these variables changes to true, the corresponding feedback layer is triggered.

    By dividing responsibilities in this way:

    • The base layer remains lightweight, only handling input.
    • The Calculation layer performs the heavy logic, reducing the risk of conflicts or timing issues.
    • Layer visibility and feedback control are handled cleanly through variable-driven triggers, rather than complex stacked conditions on the base layer.
    • The Submit button no longer struggles to process everything at once, but instead has a single, clear responsibility: to show the Calculation layer.
  • AaronBurgessAU's avatar
    AaronBurgessAU
    Community Member

    I've got it working for you.

    Though I still don't understand the actual trigger problem.

    The Problem. It is 100% the issue of the SUBMIT trigger that send the results to Feedback 4. If I hide that trigger, all the answers jump to their correct feedbacks (except for those that match the Feedback 4 variables).

    To check further I created a series of boxes on the base layer, from 1 to 8 (to represent the layers) and instead of having the submit trigger show the specific feedback layer I had it unhide the related box. I found Box 4 (Feedback 4) would always reveal itself, along with the box that was the match for the PathTotal variable. No idea why as your Submit button triggers clearly didn't call 2 layers/boxes at once.

    I then removed all variable checks that revealed Feedback 4 other than PathTotal = 10 and no matter the answer even id PathTotal = 27 it still kept showing me Feedback 4. I even set the variable check to be = -10 so it would be impossible to show, but still the Feedback 4 appeared.

    If I remember correctly I even made another layer, and instead of the Submit trigger jumping to Feedback 4 I had to jump to FAKE LAYER, and still the same problem occured. So that rules out the Feedback 4 layer being corrupted.

    So yeah I could see the problem but could not find any mistakes within your triggers.

    The Solution. It worked at my end, so hopefully it works for you.

    STEP 1. Make sure Hide other layers is checked. Feedback 1, 2, 3, 5, 6, 7, 8

    STEP 2. Feedback 4 must be unchecked.

    STEP 3. Layers are not visually stacked as they are in the Slide Layer panel. They are stacked in order of trigger call. So you need to move Show layer Feedback 4 before Show layer Feedback 1. See image below.

    This will open Feedback 4 below any other layer, meaning if the answer is for example 10, 34, or 60 then no other layer will be called and all is good. However if any other Feedback layer is shown, it will stack ontop of Feedback 4 automatically closing Feedback 4 before the user can even see anything has happened and will be unaware of this weird bug.

    Hopefully this works for you.

    • amorrissen's avatar
      amorrissen
      Community Member

      Thanks for that thorough investigation and the workaround explanation, Aaron. It sounds seriously messed up that you have to fudge it like this to get it too work. I'll give it a try.

  • amorrissen's avatar
    amorrissen
    Community Member

    Thanks for your replies.

    Eric: separate slides won't work for this because users need to see all questions at once to be able to complete the exercise.

    Judy: Thanks for testing and validating it was at least set up correctly. I will try the recreation method later when I have more time and will send my original to support. For now, I just used a single trigger for every value of PathTotal (0-63) and that worked.

    • JudyNollet's avatar
      JudyNollet
      Super Hero

      Interesting. I had wondered if some of the triggers had too many conditions (though I'm not aware of a limit). But since the wrong layer sometimes showed up from a trigger with just a few conditions, that didn't seem like the issue.

      Anyway, I'm glad to hear you  got it working, even if it did require 64 separate triggers.

  • In my testing, the PathTotal variable is calculated correctly. 

    The triggers that show the layers look like they should work. And a few of them do. But not all of them...

    I can't explain why. It's possible that the slide is corrupted. I suggest you try this:

    • Be sure you're working on your local drive.
    • Delete all of the layers.
    • Create new layers. (Tip: I suggest you create a Feedback Master with this layout. That will make it easier to add new layers. Storyline 360: Using Feedback Masters | Articulate - Community)
    • Edit the triggers to show the appropriate new layer. 

     

    If that doesn't work, you could try recreating the entire slide from scratch. 

    Ultimately, you may have to contact support: Contact Support for Help with Any Articulate E-Learning Course Development Software

    P.S. Kudos on giving your buttons and variables meaningful names. And for figuring out the complicated relationships to get different values for different answer combos.

  • I'm not an expert on this but, I don't think you can do want you want to do on 1 slide. I think you are going to need to put these 6 question on 6 quiz slides to get them to work correctly.