Hello,
I'm trying to set up an app quiz. I want to track progress, so if a user closes the app and comes back to it they will return to the last question they were on.
I'm writing their progress to sharepoint in a list then when opening the app trying to lookup where they got to and send them there.
There is the added function of a jail page, if someone tries to cheat, they go to jail for 10 mins.
The code is working to write the correct information to the list in sharepoint, but when closing and launching the app again it reverts back to the welcome page and doesn't take the user back to where they had left.
Under the APP in the tree view I've put this function.
Any help on what else I need to do would be really useful,
Thanks
StartScreen =
If(
LookUp('Campus quiz progress',Title=Lower(User().Email)).Jail= "True", Jail,
//First check users Jail value, if "True" send to Jail
Switch(
LookUp('Campus quiz progress',Title=Lower(User().Email)).Screen,
"Question 1", 'Question 1',
"Question 2", 'Question 2',
"Question 3", 'Question 3',
"Question 4", 'Question 4',
"Question 5", 'Question 5',
"Question 6", 'Question 6',
"Question 7", 'Question 7',
"Question 8", 'Question 8',
"Question 9", 'Question 9',
"Question 10", 'Question 10',
"Congratulations", Congratulations,
'Welcome Screen'
)
//If Jail is "False", Send user to screen value