Content creators can use the gotoSlide JavaScript function within an HTML <a> tag as the href parameter or update the document location attribute within the JavaScript code.
When users select the link or control that contains this underlying function, the media player jumps to the slide defined in the function. Navigation from the slide that was reached by the gotoSlide functionality is identical to navigation had that slide been reached through traditional navigation, for example, swiping left will display the slide before that slide in the presentation, not the slide from which the user jumped. Tracking CLM Key Messages also continues normally.
The gotoSlide function respects My Setup, Restricted Products on Account, and Allowed Products on Call and TSF when media is launched from a Call or an Account. The gotoSlide function does not respect Restricted Products or Allowed Products when media is launched from the Home Page.
The one-parameter gotoSlide works the same using the media_file_name__v as the external ID from which to jump to in the context of the same presentation. This feature assumes the same Media File Name is not used more than once in a presentation, otherwise, the gotoSlide randomly selects one to jump to. Only the one-parameter gotoSlide function is supported for Vault CRM.
The gotoSlide function jumps to Staged or Approved versions of presentations depending on the status of the originating presentation:
- If gotoSlide is called when viewing a Staged presentation, then it jumps to the latest version of the presentation specified in the parameters (can be Staged or Approved)
- If gotoSlide is called while viewing an Approved presentation, then it jumps to the Approved version of the presentation specified in the parameters
- If the originating presentation does not have a status, the gotoSlide function jumps to the presentation specified in the parameters based on the following priority: status__v = Approved > Staged > blank