One Screen, 1 Gallery
Click App in left menu (top) and select OnStart (May need to enable OnStart in settings) There make a collection like so.
ClearCollect(MyQuestions, {Question: "How Are You"}, {Question: "How Old Are You"}, {Question: "What Are You Here For?"})
In your Gallery Have a label for your question, and a forward and back button to navigate them.
In the OnVisible of the screen this gallery is on place UpdateContext({questionVar:1})
The Gallery items should be something like
Last(FirstN(MyQuestions, questionVar))
Make the label in your Gallery ThisItem.Question
Back Button is
Switch(questionvar,
1, UpdateContext({questionVar:CountRows(MyQuestions), pauseVar:true}),
UpdateContext({questionVar:questionVar-1, pauseVar:true}))
Forward Button is
Switch(questionvar,
CountRows(MyQuestions), UpdateContext({questionVar:1, pauseVar:true}),
UpdateContext({questionVar:questionVar+1, pauseVar:true}))
Then make sure that those switches also contain ways to submit the data the client input. I would recommend having two forms, an edit and a new. Connect both to the datasource and on first newform, only really need to include the title/required column, and whatever other columsn may be in your source that are not the questions answers.
Add to the onvisible of your survey/quiz page SubmitForm(Form1) - change formname to name of your NewForm. and in this forms OnSuccess
You want UpdateContext({evalID:Self.LastSubmit.ID})
EditForm Item Will be Filter(YourSourceName, ID=evalID)
Editform you will make defaults of each control datacard a switch like this.
for question 1 datacard,
Switch(questionvar,
1, ControlNameInGalleryThatRepresentsQuestion1Answer.Text or .Value depending on the control type,
Parent.Default)
for question 2 datacard,
Switch(questionvar,
2, ControlNameInGalleryThatRepresentsQuestion1Answer.Text or .Value depending on the control type,
Parent.Default)
and so on.
Now on the back and forward buttons you can add a ResetForm(Form2); EditForm(Form2); SubmitForm(Form2) this will submit each edit as you navigate
Add this to the onSuccess of your form2 (edit form)
UpdateContext({pauseVar:false})
And with this example you can have all one question type or multiple types etc.
so lets say theres 2 text answers and 1 yes no, just make the controls inside that gallery stacked, with visibilities set to
for example q1 & 2 are a textbox.
that textbox vis would be like questionVar = 1 || questionVar = 2
and 3 is a radio,
that radio would have a vis of questionVar=3