You are here: > Home > Support > ToolBook Knowledge Base
Services
talent management whitepapers

Knowledge Base

PREVENTING THE USER FROM CLICKING THE NEXT BUTTON UNTIL THE QUESTION IS ANSWERED

Looking for a way to keep your user on the page until after they have answered the question? There are several ways to approach this:

  • Hide the next button
    Ensure that anytime you enter the page, the next button is hidden and it only shows itself after the user answers the question. Read more...
  • Disable the next button
    Ensure that anytime you enter the page, the next button is disabled and it only enables itself after the user answers the question. Read more...
  • Ignore all clicks on the next button
    Place a "cover object" on top of the next button so that instead of clicking the next button, the cover object gets clicked. This cover object can be any other object, such as a button, a transparent rectangle, etc. You would then ensure that the cover object is made visible when you enter the page and it is hidden when the question is answered. This solution is discussed below.

Regardless of approach, only the Instructor version of ToolBook will be able to be used to implement this behavior, since programming will be involved.

BASIC NEEDS

Of the three approaches referenced above, this lesson will cover how to Ignore All Clicks On The Next Button.

There are three fundamental tasks to handle:

  • Adding a cover object (typically a transparent rectangle) over the next button
  • How to SHOW the cover object when the page is loaded
  • How to HIDE the cover object when the question is answered

    ADDING THE COVER OBJECT

    The purpose of the cover object is to give the user something else to click on, so that instead of clicking on the next button, the cover object will be clicked. If you use a completely transparent rectangle for the cover object, the user will not see the cover object, but it will still be there and it will still block the click.

    To add the cover object:

    • Add the Rectangle object from the Draw Object category of the catalog
    • Position it show that it is fully covering the location of the Next button
    • Open the property dialog for this rectangle
    • Name the object "Next Button Cover"
    • Set the Line Style to none
    • Turn on the Transparent checkbox

    SHOWING THE COVER OBJECT WHEN THE PAGE LOADS

    Use the On Load Page action of the Question Object to ensure the visible property of the Rectangle is set to True.

    This will ensure the cover object (the Rectangle) is visible as the page loads. This visible (but transparent) rectangle will prevent the click from reaching the Next button.

    HIDING THE COVER OBJECT WHEN THE QUESTION IS ANSWERED

    The process to HIDE the Rectangle is just a matter of writing the following code within the Actions Editor for the particular question object.

    Once hidden, the next button can be successfully clicked by the user.



      Provide Anonymous Feedback About This Article