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 / Building a Survey. How...
Power Apps
Unanswered

Building a Survey. How to create page with questions?

(0) ShareShare
ReportReport
Posted on by 24

Hi, 

I've to build an app for a survey with max 20 questions

 

Each question is of the same type:

1) Question

2) toogle True / False

3) Notes (if true)

 

My doubt is: Have I to build 1 page for question or can I Build 1 page and Fill it with question data with a Next button?

 

Thanks for your help

 

Marco

 

 

 

 

 

 

 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @marpisa 

    Hi there.   Is all of your data stored in the same table?  If yes, there is no need to create multiple submit buttons/forms.  You can use a single screen and show/hide datacards when the user clicks a button to goto the next section.  It will appear like there are multiple screens but there aren't.  An advantage of doing things this way is your only have to submit the form once.

     

    Put this code in the OnVisible property of your screen

    Set(currentPage,1)

     

    Then for every datacard you want showing on Page 1 you must put this code in the visible property.  For any datacards showing on other screens use the appropriate page number

    currentPage=1

     

    Create a button to browse to the next page with the following properties.  We will say for this example there are 3 screens.

    Text: "Next Page"
    OnSelect: Set(currentPage,Min(currentPage+1,3)
    Visible: currentPage<>3

     

    Create another button to browse to the previous page with the following properties.

     

    Text: "Previous Page"
    OnSelect: Set(currentPage,Max(currentPage-1,1)
    Visible: currentPage<>1

     

    Finally create a button to Submit the form with the following properties

    Text: "Submit Form"
    OnSelect: SubmitForm(your_form_name_here)

     

    Let me know if you have questions.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

    View solution in original post

  • marpisa Profile Picture
    24 on at

    HI @mdevaney 

    thanks for your reply

     

    So I have to create 20 Datacard, one for each question  it's right?

    But,  if tomorrow I add a question or delete one I have to edit my App.

    There is a way to do this dinamically? 

     

    My questions are stored in a SQL table.

    I have to

    1) load the questions from Sql table  (maybe using a collection?)

    2) show a "page" for each questione

    3) save the data, after submit

     

    I think I have to use a gallery in a page whit a link to a detail item page, it's right?

     

    Thansk for your support and for your time

    Marco

     

  • mdevaney Profile Picture
    29,991 Moderator on at

    @marpisa 

    Yes, when a question is added, typically you would have to add a new question in the app an create a new datacard.  You might be able to figure out a solution using a gallery, but I cannot provide you with any advice in this area.

     

    If you want a dymanic form why not try MS Forms (https://forms.office.com/)using SharePoint or Excel as a backend.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard