Salesforce Fact #297 | Retain LWC input in screen flow
We can embed LWC component in screen flow. Now, suppose there is an input field in the LWC and there are multiple screens in the flow. We would like to ensure that the entered value is retained in LWC component in the screen flow even if we traverse back and forth.
In order to get this, we can define a config property in LWC and enable the option in screen flow of manually assign variables. In this way, we can store the value of the entered data in the variable before going to the previous and next screen and the same value can be specified as the input to that property in that screen.
Attached are the screenshots.
Comments
Post a Comment