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 / Formula to patch multi...
Power Apps
Answered

Formula to patch multi checkboxes and each box is a column

(0) ShareShare
ReportReport
Posted on by 249

Mo78_2-1697037925103.png

 

I have this form and am trying to patch check boxes based on the selection. probably will select one or more based on the requirement. 

 

is there away to patch them by button as shown or what I showed do. each check box is a data card.

 

like 1-E2 account update_DataCard1 is a data card and the check box value is = DataCardValue9 

 

and so for each one. 

 

please help

Categories:
I have the same question (0)
  • Mo78 Profile Picture
    249 on at

    I used this formula. and it did work. but it does record each one of them individually. is it possible to collect all of them in one record when updated?

     

    Patch('Onboarding Work Tracker',ThisItem,{'1-E2 account update':Value(Value(DataCardValue9.Value))});Patch('Onboarding Work Tracker',ThisItem,{'2-OS/FLM-IT Attribute added in SWB':Value(Value(DataCardValue10.Value))});Patch('Onboarding Work Tracker',ThisItem,{'3-TMC-IT Staffing Category updated in SWB':Value(Value(DataCardValue16.Value))});Patch('Onboarding Work Tracker',ThisItem,{'4-Supervisor added in SWB':Value(Value(DataCardValue13.Value))});Patch('Onboarding Work Tracker',ThisItem,{'5-Request laptop for new OS':Value(Value(DataCardValue11.Value))});Patch('Onboarding Work Tracker',ThisItem,{'6-Training start date in SWB for trainees':Value(Value(DataCardValue18.Value))});Patch('Onboarding Work Tracker',ThisItem,{'7-Notify Training SSPs of new AG/CPCIT/PE':Value(Value(DataCardValue17.Value))});Patch('Onboarding Work Tracker',ThisItem,{'8-Timecard first PP':Value(Value(DataCardValue19.Value))});

     

    Looking for any help please.

     

    Thanks 

     

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Mo78 ,

     

    Please try:

    Patch(
     DataSource,
     Defaults(DataSource),
     Patch(
     If(CheckBox1.Value,{'Column1':DatePicker1.SelectedDate},{}),
     If(CheckBox2.Value,{'Column2':DatePicker2.SelectedDate},{}), 
     If(CheckBox3.Value,{'Column3':DatePicker3.SelectedDate},{}),
     If(CheckBox4.Value,{'Column4':DatePicker4.SelectedDate},{}),
     If(CheckBox5.Value,{'Column5':DatePicker5.SelectedDate},{})
     )
    )

     

    Best Regards,

    Bof

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard