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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collecting Yes/No Data...
Power Apps
Unanswered

Collecting Yes/No Data from Gallery

(0) ShareShare
ReportReport
Posted on by 2
Hi all,
Apologies as I am fairly new to PowerApps and may either be missing something really easy or asking PowerApps to do something that isn't possible. I am building a app which collects compliance of a few categories of questions which are organised into cards. I have a field called 'CardCollection' which I generate OnStart of the app which has the card title and the list of yes/no questions I want answered.
I use a gallery to display the card titles and then have it set up so on selecting this gallery the questions related to this card appear in another gallery, as shown. I have added a toggle to the top line of the gallery, which I am hoping to be able to collect into a SharePoint list as one row per card. I just want the yes/no status of any toggles in the gallery - but the number of questions on each card and questions changes, I don't know how I can do this.
Can I have it so I have a maximum of say 5 yes/no columns in the SharePoint and then 'spare' boxes are kept null or as a default? Is it possible to collect toggle data like this one row per entry? I have attached a snip of the layout of my app.
Thanks so much in advance.
Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    Why are you using a collection? This creates inflexibilities into your app.
    You can create the gallery from the SharePoint list.
    Provide some more details of the data structure showing the relationship of the questions to the cards.
    Even if you use a collection don't you know how many questions there are so that you would only create the required number of records? 
  • Mark Nanneman Profile Picture
    991 Super User 2025 Season 2 on at
    A smarter way to do this might be to setup a relational database (that is, separate tables with lookups to link).

    Something like: 

    A SharePoint list for "CardType"
    A SharePoint list for "Locations" (Lookup field to CardType)
    A SharePoint list for "Tasks" (Lookup field to CardType and/or Location)

    In your app you just use the selected Card Type or Location to display which tasks need to be be addressed.

     
  • CU19111310-1 Profile Picture
    2 on at
    Hi both, thanks for your replies. I will try using a SharePoint list and see how I get on. 
     
    @ronaldwalcott Yes I will know the number of questions for each card, but some cards will only have 2 questions while others will have around 5. 
     
    @Mark Nanneman I will try using lookup columns. How would I store the result of each question? Would I have to have a specific 'task' box to allow the gallery to pull in the task, and then a less specific 'Task 1 Yes/No' field for writing of data when people submit their answers, irrespective of the task?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard