Navigation Control

In order to control the navigation buttons in a step please follow the below instructions:

 

Step 1: Install the Roojoom SDK.

Instructions:https://roojoom.zendesk.com/hc/en-us/articles/209225705-Roojoom-SDK-Installation

 

Step 2:  Use the blow API to send navigation commands to the Content Journey player in order to control navigation buttons.

 

For example:

Navigation from a step that is forward blocked, invoking rjsdk.navigation.unlockNextStep() in the hosted site will enable the user to navigate forward to the next step.

 

API - version 2.0.1

 

rjsdk.navigation.unlockNextStep()

Enables forward navigation to the next step only

rjsdk.navigation.unlockPrevStep()

Enables backward navigation to the previous step only

rjsdk.navigation.unlock()

Enables navigation to any step

rjsdk.navigation.lockNextStep()

Disables forward navigation to next step

rjsdk.navigation.lockPrevStep()

Disables backward navigation to previous step

rjsdk.navigation.lock()

Disables navigation from current step

rjsdk.navigation.goToNextStep()

Navigate to the next step

rjsdk.navigation.goToPrevStep()

Navigate to the previous step

rjsdk.navigation.goToStep(<step>)

Jumps to <step>

<step> - integer, target step number (first step is 1)

rjsdk.navigation.restart()

Jumps to the beginning of the CJ

 

 

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.