Loading
Salesforce now sends email only from verified domains. Read More
Visual Studio Code Based Modeler for Consumer Goods Cloud
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
          onBackDiscardV2 Attribute

          onBackDiscardV2 Attribute

          Use the onBackDiscardV2 attribute to exit a setup flow without validation or saving. When onBackDiscardV2 is set to true, pressing the back button ends the current process without saving data or user changes, closes the flow UI, and reverts to the previous process without returning any values.

          Required Editions

          Available in: Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.

          Attributes

          Important
          Important Always use the onBackDiscardV2 attribute to configure the discard handling settings for pages. When set to true, onBackDiscardV2 discards unsaved changes by default when exiting a setup flow while onBackDiscard saves data.

          The table describes the onBackDiscardV2 attribute.

          Attribute Description Values Required?
          onBackDiscardV2 Changes the discard handling for pages. Boolean No. The default value is false.

          Sample Code

          <!-- left out details for brevity -->
              <Page pagePattern="SingleSectionDialogPage" cachable="false" onBackDiscardV2="false">
           
          Loading
          Salesforce Help | Article