DynamicFlowProgress icon indicating copy to clipboard operation
DynamicFlowProgress copied to clipboard

Undefined Trim Issue on Select Screens

Open handlerda opened this issue 3 years ago • 2 comments

Hi all,

We are running into an issue using the Path were we are getting the following error:

Error

Cannot read properties of undefined (reading 'trim')

We have configured using the following:

image Screen Shot 2022-10-14 at 9 41 43 AM

Observations

We have only noticed this error on select screens. Ie 1 progress bar screen works but most others in our flows do not.

Details

The below code resolves to 'Path' let indicatorClean = indicatorDirty.trim().toLowerCase(); Screen Shot 2022-10-14 at 9 45 29 AM

handlerda avatar Oct 14 '22 13:10 handlerda

We are seeing a similar error that occurs when utilizing this in a Screen Flow where users click the Previous button and then return to any of the later screens with the progress bar.

Error: image

Flow Config: This is set up to display a different progress bar dynamically, and occurs whether the 'component visibility' criteria is based on a text variable that is assigned, or a screen input resource. image

esnorris avatar Jan 05 '23 19:01 esnorris

@esnorris we resolved this by creating a new flow. It did not work when we cloned the flow. I think this is an issue with Salesforce backend flow interview process and not the component itself.

handlerda avatar Jan 05 '23 19:01 handlerda