Skip to main content
Participant
April 6, 2020
Question

On 'Go to next slide' screen flashes white and resets slide instead.

  • April 6, 2020
  • 2 replies
  • 424 views

On the fifth slide of my project I have seven buttons to press before the 'next button appears. The first timne I hit the next button; the screen flashes white and the slide refreshes. If I try clicking the buttons a second time; I get to the fifth or sixth button and the screen flashes white and the slide resets again.

 

I've tried previewing the project from after this slide, in which case it gets even stranger: It will let me view no more than two slides before the next button simply doesn't do anything.

 

The only clue I have is may variable for number of total slides which should be a static variable (cpInfoSlideCount - 3) set on the first slide. It should equal 17, however when I preview from slide 6 it seems to be reading the current slide number instead (it increases by 1 on the next two slides).

 

Has anyone seen anything like this before? I'm completely lost.

    This topic has been closed for replies.

    2 replies

    sabre123
    Participating Frequently
    April 6, 2020

    First, if you don't have anything setup to debug your code, you're basically blind as to what is causing the problem. You should set up text boxes that will display the values of your variables somewhere on the slide.

     

    I can't tell exactly what you're doing, in terms of what the learner has to accomplish to successfully complete a task, but, maybe something like this will work:

    • Declare a counter variable that will be incremented by 1 every time a user successfully completes a task (i.e. var_S5_TasksCompleted = 0).
    • Then declare a var to establish the total number of tasks the user needs to successfully complete (i.e. var_S5_TotalTasks = n)

     

    Advanced action:

    • Every time a button is clicked/task is successfully completed, increment var_S5_TasksCompleted by 1 (make sure you disable the [button] or whatever interaction performed after a successful attempt so you prevent the counter var from being incremented more than once per task)
    • then have a conditional check if var_S5_TasksCompleted == var_S5_TotalTasks.
    • If true, show the Next button.

     

     

    Lilybiri
    Legend
    April 6, 2020

    Lot of lacking details in this question. Which version (full number under Help, About Captivate)? Is it a responsive or a non-responsive project?  For a non-responsive project aimed for HTML5 output the only usable Preview method is 'Preview HTML in Browser' (F11).

    You probably have a logical bug in the advanced action, which is not shown. Please post a screenshot of the used actions (Preview window). 

    Participant
    April 6, 2020

    Hi,

     

    Ok, so I'm using Captivate 2019 release 11.5.1.499

    Its a responsive project

     

    The only action on the next button itself is the standard 'Go to the next slide'.

     

    This is the code for one of the buttons on the slide itself. All the other buttons are the same (literally duplicates) just adding a different poiece of information to the same variable.

    RodWard
    Community Expert
    Community Expert
    April 6, 2020

    The way you currently have these Conditional decisions set up is not the best approach.  You're trying to get one variable to track multiple things.  I would suggest you need to create a different variable for each separate thing that needs tracking.  That will give you more accuracy and reliability.