alexed1 / LightningFlowComponents

A collection of unofficial Flow extensions that can be used to enhance Salesforce Flow and Orchestrator.
http://unofficialsf.com
Other
585 stars 577 forks source link

fsc_flowButtonBar Losing Selected Values On Screen Navigation #1058

Open Kenji776 opened 2 years ago

Kenji776 commented 2 years ago

The flowButtonBar seems to lose it's selected items 'state' during navigation through a flow. A user selects multiple entries from the button bar, and clicks next. If they then return to the previous screen the UI state does not reflect the previous selections. The value is still available in the flow itself so it's being written fine but the component itself doesn't check for the previously set values.

I imagine the variable used to store the selections would have to be fed back into the component (in this case {!CIWaterConcerns.values}) and then the component would have to set the UI state from those selections. Not sure if there is a better way. I did make a quick attempt at making that change (adding a parameter to the configuration called 'Selected Values' then passing in {!CIWaterConcerns.values} as the value but it didn't seem to work.

samphif commented 1 year ago

I've also seen this issue if a required field is missing on the page and we are even trying to navigate to a different screen.