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 / select 2 checkbox problem
Power Apps
Answered

select 2 checkbox problem

(0) ShareShare
ReportReport
Posted on by 92

Hello guys I'm trying to do a page using checkbox more then 2...but now I'm trying with 2 checkbox and text

but when I'm selected 2 box only 1 data go save in excel table....how do I want to make 2 data save in excel 1 row...

If success i'll proceed with more then 2 checkbox..

Here the screenshot and the code I used:

1.PNG2.PNG

 

 

Any solution for this problem? Hopefully I can get hep ASAP

 

Rgd

Azzam

Categories:
I have the same question (0)
  • Verified answer
    BitLord69 Profile Picture
    914 on at

    Good morning!

     

    You do two calls to Patch, so naturally you get two records in the database. If you want only one record, you have to make only one call to Patch!

     

    Patch(Table1_1, Defaults(Table1_1), {NAME:User().FullName,RESULT1:Checkbox1.Text, RESULT2.Checkbox2.Text})

    What you also might want to do is to check if a checkbox have been clicked, so you have to add an If-statement:

     

     

    Patch(Table1_1, Defaults(Table1_1), {NAME:User().FullName, If(Checkbox1.Value, RESULT1:Checkbox1.Text), If(Checkbox2.Value, RESULT2.Checkbox2.Text)})
    
    

    Lastly, you might want to store the current user in a variable at app start, using either Set or UpdateContext, so you don't have to do the time consuming call to User() every time.

     

    Good luck!

     

     

  • azzamkaz Profile Picture
    92 on at

    Thank you for your solutions...kindly apperciate it.. @BitLord69

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard