I am trying to embed a LWC with lot of configurable properties in a Flow. Most of the properties need to have default values to start with so that user spends less time configuring the component. However, when the screen renders, the default values are not retained at all. Has anybody else faced a similar issue?

1 Answer 1


I'm guessing you're trying to set the defaults in your component's configuration file. Flow does not yet support the default attribute on the Property element in the LWC configuration file. To use defaults with Flow, set them in your code and not in your configuration file.

  • 1
    Got it. Thanks for clarifying that.
    – ashish n
    Mar 9, 2020 at 21:45
  • 1
    Hey Alex, thanks for letting us know about this limitation. May I ask, are there any plans in the near-mid term to support this? We're building many custom LWCs for Flows, and we'd prefer to avoid setting default values in the code if there are plans to support this in the near future.
    – M H
    Jul 22, 2020 at 10:53
  • 1
    Salesforce is indeed planning to fix this but can't commit to a target date. Oct 2, 2020 at 4:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.