Loading
Scheduled maintenance for Salesforce HelpRead More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          saveState Function

          saveState Function

          Saves data about the presentation’s state to the state property in the JSON that’s supplied to the presentation’s Mustache template. Stores the state on the user’s device so that users can resume a presentation and continue where they left off in the same session or a future session.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise and Unlimited Editions with Life Sciences Cloud, Life Sciences Cloud for Customer Engagement Add-on license, and the Life Sciences Customer Engagement managed package.

          Syntax

          PresentationPlayer.saveState(state)

          Arguments

          Argument Description
          state

          Any string that represents the state of the presentation, typically in JSON format. For example, the presentation state, such as the current slide position, user preferences, or progress tracking.

          State values are stored and saved for each presentation and visit. When users resume a presentation from a visit, they return to their previous state.

           
          Loading
          Salesforce Help | Article