web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps MultiScreen...
Power Apps
Unanswered

Power Apps MultiScreens Design

(0) ShareShare
ReportReport
Posted on by 85

Hi Team, 

 

I am working on a Project where we need to Create a Assessment App which has 60 + questions, we just wanted to understand how can we achieve this?

 

1. Is it Possible to display 60 + Questions programmatically in PowerApps by Creating one single screen?

 

Like > Display first question > User submits the response and hit save button > As soon as user clicks on save button > Display 2nd Question> like wise need to populate 60 questions on the same screen? is it something achevable if Yes How? need some guidance.

 

2. Created 60 Pages/Screens to display all the questions...which would be the better way to handle different scenarios and conditions for each question..

 

Please suggest

 

 

 

 

Categories:
  • TheRobRush Profile Picture
    11,128 Moderator on at

    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

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Forgot to mention, included those pauseVar timers so you can set displaymode of the back forward icons to switch(pauseVar, true, Disabled, Edit) so you can prevent double taps before your form.finished its submission

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard