Values populated in Cached fields disappears after clicking BACK
I have the following scenario
Step 1 -> Enter data in Overview screen (Flavor1) and click a button
Step 2 -> Screen 2 (Flavor 2) is called -> There are fields which are cached
Step 3 -> After entering values in Screen 2, click a button which will go back to Screen 1(Flavor 1)
During this time, I am getting a script error issue and the data entered in Screen 2 disappears.
Here is the script on the button that takes from Screen 2 to Screen 1.
P.S -> If we hit ENTER and then click the button to go back, it works fine.