Skip to main content
Known Participant
May 13, 2016
Question

Need a sanity check for an advanced action

  • May 13, 2016
  • 1 reply
  • 562 views

Hi everybody,

I've been working on what I thought was a simple advanced action to essentially hide a slide and disallow access until an interaction is successfully completed. For some reason I can't get it to work and I can't find the error in my logic. I'm hoping fresh eyes/brains will catch what I can't!

Slide A is part 1 of a 2-part interaction. Upon visiting slide A, a variable (VAR) is assigned '0'. At the end of the advanced action to verify the correct answer, VAR is assigned '1' when the answer is correct.

Slide B is part 2 of the interaction. I want this slide to only be accessible after part 1 is successfully completed. After the slide has loaded there's an action to assign a second variable, var_slide_status with 'visited'.

Slide C comes after B and is just a regular slide, not part of the interaction. On slide entry, VAR is assigned '2'.

Slide B has a validation advanced action that manages different navigation scenarios, it goes something like this (using multiple decision blocks):

  • if var=0, jump to Slide C (skips Slide B since Slide A wasn't answered correctly)
  • if var=1, continue and assign var_slide_status with 'visited' (Slide A answered correctly, Slide B continues and assigns a variable saying it has been visited)
  • if var=2 AND var_slide_status != 'visited', jump to Slide A (allows for backward navigation while skipping Slide B)
  • if var=2 AND var_slide_status='visited', continue (allows backward navigation to Slide B so user doesn't have to re-do Part 1)
  • if var=0 AND var_slide_status='visited', continue (allows re-navigation forward since VAR will revert back to 0 when Slide A is re-visited)

Right now, the navigation isn't working as expected. The back and forward skipping Slide B works fine if Slide A is not answered correctly or isn't attempted. Slide B also shows up fine when Slide A is answered correctly. The problem lies when Slide B is accessed and I move forward to Slide C. Every time I click back from Slide C, instead of going back to revisit Slide B as I hoped, Slide C reloads itself. If I click twice really fast, it will jump to Slide A, but never Slide B even though it has already previously been visited. Then when it takes me back to Slide A, when I go forward

I hope this makes sense because I had a time figuring out to begin with. It makes sense to me but clearly I'm not doing something right. Can anyone take a look and figure out what I'm doing wrong?

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    May 13, 2016

    Please, post a screenshot of the advanced actions.

    Sent from my iPad

    Known Participant
    May 13, 2016

    Yes of course, sorry I didn't think to do that before!

    Just to preface, my naming conventions are not ideal as you'll see one variable and the advanced action have the same name, so hopefully that does't confuse.

    Here's Slide A on enter, and then the validation of the interaction:

    Here's Slide B, on enter and the decision blocks within that advanced action:

    And here's Slide C on enter:

    Lilybiri
    Legend
    May 14, 2016

    Sorry, you seem to be unaware of the Preview action button that exists for conditional actions, which will show the total work flow of the action with all decisions: look in the top control panel, there is a Play icon (first button), which will open the Preview Action window. I suspect something is awry with the sequence of your decisions/commands but it is difficult to read this from separate screenshots.

    Another tip: naming convention not ideal is a serious underestimation. NEVER use the same name twice, please. There are only a few circumstances where Captivate will not go crazy if you use the same name twice. This could be one of the origins of your issues.

    You use several decisions On Enter for slide B, but the action that will skip slide B when going backwards should be triggered by the Back button, I don't understand why you are putting that in the On Enter action at all. Maybe post also partially the content of Advanced Interaction view (F9) to see which actions are triggered by which events.