Skip to main content

I would like to have a button on an Experience Cloud page launch a screen flow. How would I do this? 

1 respuesta
  1. 1 jun 2023, 19:02

    Hi @claudia von mallinckrodt

     

    To create a button on an Experience Cloud page that launches a screen flow, you can follow these steps:

    1. Create the screen flow that you want to launch when the button is clicked. This flow should contain the desired screens and flow logic to guide the user through the process.
    2. You'll need to create a custom Lightning Component or LWC to embed the button on the Experience Cloud page. This component will handle the click event and launch the screen flow.
    3. Once you have created the component, you need to add it to the Experience Cloud page where you want the button to appear. You can do this by editing the page layout and dragging the Lightning Component or LWC onto the appropriate section of the page.
    4. Within the Lightning Component or LWC, implement the necessary logic to launch the screen flow when the button is clicked. This typically involves invoking the flow using the lightning:flow component or JavaScript controller code.
    5.  Customize the appearance and label of the button within the Lightning Component or LWC to match your desired user interface design.
    6. Save and publish the changes to the Experience Cloud page. Test the button by accessing the page in the Experience Cloud and verifying that the screen flow launches successfully when the button is clicked.

    Thanks

0/9000