Loading

Flow variable changes not getting updated on next screens of flow

Fecha de publicación: Oct 13, 2022
Descripción

Flow variable changes not getting updated on next screens of flow when coming back using previous button.

  • A flow variable is being passed from screen1 to screen 2 as default value on screen 2. It works fine for first attempt and correct value is shown on screen 2.
  • But when we click previous button and update the value then the new value is not updated on screen 2 but old value is persisted. This is occurring when both the fields are large text Area. 


Example : Screen 1 value abc populates to abc when we click next on screen 2.
Now if the user clicks previous and update value 123 on screen 1 and then click next still abc is shown on screen 2 

Solución
  • This is working as designed.
  • The flow tries to preserve any values on a screen that has already been visited by the user, even if the user clicks "previous" and then returns to that screen.
  • This is to preserve user inputs so they don't have to be re-entered. We don't make that distinction at this time if the user is coming back after re-editing the values. It still persists with the values entered in the first instance.
Additional Reference:
https://unofficialsf.com/optimizing-lightning-component-inputs-and-outputs-in-flow-screens/
Número del artículo de conocimiento

000384049

 
Cargando
Salesforce Help | Article