I am trying to build logic but can't really workout.
- I have two button, forward and backward.
- An array which contains Key values from the LocalStorage (e.g an array with 4 indexes contains keys from localstorage)
- First time my form loads, I get first index of array and show the related data from localstorage into the form filelds (all fine here
- When I click next button, I increase the array index by 1 to get next records from LocalStorage (all fine here
- (This is where problem is ) But when I click next button again, ofcourse it calls the button tap again and runs my for loop (inside the button tap event function) from start and gets me the index at 1 again.
Any suggestions please?
Thanks in advance.