Loading
Feature degradation | Gmail Email delivery failureRead 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
          Set Up Flyouts on a Flexcard

          Set Up Flyouts on a Flexcard

          Display additional information from a child Flexcard, an Omniscript, or a custom Lightning web component when a user clicks an action on a Flexcard. For example, show account information on a Flexcard and the primary contact's name and email address in a flyout.

          1. After you select the flyout action type, select the type and name of the component to embed in the flyout. Only active components are available.
            Important
            Important

            Don’t embed the same component in more than one Flexcard.

            Note
            Note

            We recommend that you avoid using the navigate action directly on a flyout or modal. However, if required, add an action of type Event to the Flexcard and set the event name to closemodal to ensure smooth functionality.

          2. To pass an object from the parent Flexcard’s data source instead of using the child Flexcard’s data source, select a data node:
            • {records}: Pass all data.
            • {records[#]}: Pass the data of a specified record. For example, {records[0]} and {records[1]} are the first two records.
            • {record}: Pass the current record's data, such as when you deselect Repeat Records on the Setup tab.
            • {record.FieldName}: Pass a record object, for example {record.Product} for an object or array with additional data.
            • {record.attributes}: Pass all attributes for the current record.
          3. To pass attributes from the flyout’s component to the child component, add an attribute.
            1. In Key, enter an attribute name such as ContextId for passing the context ID of an Omniscript to the Flexcard.
            2. In Value, enter an attribute value.

              To access the attribute in the child component, use the {Parent} context variable. For example, enter {Parent.Id} in the child component's data source input map value field to use the parent's account ID as the child's context ID.

              The Value field supports concatenated strings, including a combination of plain text and supported merge fields, such as {Parent.type} > {Name}.

          4. Enter a channel name.

            The Channel Name field supports data merge fields such as {Name}, and the context variables {recordId} and {Session.var}.

          5. Enter the remaining information as needed.

          Close a Flyout Window Automatically

          Set up a modal or popover flyout to close after a task is complete by adding a pubsub event in that window. For example, close a modal after a user updates an Omniscript from a flyout.

          1. Open or create the Flexcard that is to display in the flyout.
          2. Set up a pubsub event that closes the flyout window in one of these ways:
            • Set up an event action by using the action element or by adding it to a supported element such as a block.
            • Set up an event from Setup.
          3. Enter the channel name that you used in the flyout’s parent Flexcard.
          4. Enter close as the event name.

          Close a Flyout Window from a User Action

          Enable users to close a modal flyout after they perform an action by adding a closemodal event in that window.

          1. Open or create the Flexcard that is to display in the flyout.
          2. Set up a custom event that closes the flyout window in one of these ways:
            • Set up an event action by using the action element or by adding it to a supported element such as a block.
            • Set up an event from Setup.
          3. Enter closemodal as the event name.
          4. Select Composed and Bubbles.
           
          Loading
          Salesforce Help | Article