Documentation

Submit

Description

Submit works in a way similar to Check module as it allows to check whether the provided answers are correct or wrong. However, its most important feature is that it first checks whether the user has attempted to complete all activities included in a page. If not, the addon sends a relevant message.

Properties

The list starts with the common properties, learn more about them by visiting the Modules description section. The other available properties are described below.

Property name Description
Text Text displayed while not in the 'selected' state.
Text Selected Text displayed while in the 'selected' state.

Supported commands

Command name Params Description
show --- Shows the module.
hide --- Hides the module.

Advanced Connector integration

In Advanced Connector you can react to events sent by Submit addon.

EVENTSTART
Source:Submit1
Name:NotAllAttempted
SCRIPTSTART
    var feedback = presenter.playerController.getModule('feedback1');
    feedback.change('NotAllAttempted');
SCRIPTEND
EVENTEND

EVENTSTART
Source:Submit1
Name:Submitted
SCRIPTSTART
    var text= presenter.playerController.getModule('Text1');
    text.setText('Submitted');
SCRIPTEND
EVENTEND

Events

Submit sends events compatible with Advanced Connector module.

It sends the Submitted event when a user clicks on the Submit button and all activities on a page has been attempted to be completed.

Field name Description
Name Submitted

It sends the NotAllAttempted event when a user clicks on the Submit button but NOT all activities on a page has been attempted to be completed.

Field name Description
Name NotAllAttempted

It sends the State event when a user clicks on the Submit button whenever it is in its clickable state.

Field name Description
Name State
Value It is 1 or 0 depending on the button's state before clicking. 1 means that the button has been pressed, 0 means that the button has been released.

CSS Classes

Property name Description
.submit-wrapper The outer wrapper of the whole addon
.submit-container The inner container of the whole addon
.submit-button A button's element
.submit-wrapper.selected The outer wrapper when the addon has been clicked

Default Styling

.submit-wrapper,
.submit-wrapper .submit-container,
.submit-wrapper .submit-container .submit-button {
    width: 100%;
    height: 100%;
}

.submit-wrapper .submit-container .submit-button {
    background: url('resources/submit-button.png') no-repeat center;
    cursor: pointer;
    text-align: center;
}

Demo presentation

Demo presentation contains examples of how this addon can be used.