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 / Store only some column...
Power Apps
Unanswered

Store only some columns from a sharepoint list based on checkboxes

(0) ShareShare
ReportReport
Posted on by 4

Hi everyone,

 

I'm pretty new to power apps. I'm building an application and I need to only store some columns from a sharepoint list. These columns are selected by the user in some checkboxes so they aren't known until runtime. Is there a way to do this?

 

Thanks in advance.

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi,
    Would you like to show some columns based on checkbox selection in a form or you want to save data of some columns based on checkbox selection in a form on button click

  • massanaRoger Profile Picture
    4 on at

    I would like to save the data, so I can save it to excel later

  • BCBuizer Profile Picture
    22,720 Super User 2026 Season 1 on at

    Hi @massanaRoger ,

     

    In this case it may be best to use the Patch() function for the individual columns and check per column if the corresponding checkbox has been checked:

     

     

     

    If(Checkbox1.Value,Patch(DataSource,Defaults(DataSource),{Column1: TextInput1.Text}));
    If(Checkbox2.Value,Patch(DataSource,Defaults(DataSource),{Column2: TextInput2.Text}));
    etc.

     

     

    Edit: Forget about the above as it will create new items with only the one column specified...

  • Dominik_Nau Profile Picture
    85 on at

    Hello  @massanaRoger - If I understood your request right, you have some checkboxes and based on the selected checkboxes you want to display the fields from the form? If yes, you can achieve that by the visible property of the data-cards

     

    • Insert the Form connected to the SharePoint list
    • Click on the data-card for which the checkbox should apply
    • Go to the "Visible" property of the Datacard

     

    Switch(
     Checkbox_1.Value,
     true,true,
     false,false
    )

     

    PowerApps_Visible_Property.png

  • massanaRoger Profile Picture
    4 on at

    Hi,

     

    Thanks for your answer, but besides of that, I also need to store the information so I can then create an excel file from it. 

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 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard