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 / Checkbox with patch an...
Power Apps
Answered

Checkbox with patch and number input

(0) ShareShare
ReportReport
Posted on by 18

Hello everyone, I hope you're doing well. I'm reaching out to seek assistance with a particular situation.

I have a gallery containing various fields such as "Semaine," "nom," "type," and a checkbox for each item within these fields. My goal is to enable the user to input a number in a small input box. Upon clicking the checkbox and then the check icon, I aim for each checked item to update the corresponding "Semaine" field with the user-inputted number.

I appreciate your help. Thank you!

 note: That the term "Semaine" means "Week" in French, and "nom" means "Name."

1.PNG

and this is the field that i want to change it with this number when i check the the check box 

2.PNG

 

P.S: i have a frensh version of PowerAPPs

i tried with this code but it change the whole items in the gallery not only the selected one and i tried to much code but with no result 

 

 

 

 

 

 

 

 

 

With(
 { SelectedRecords: Filter(test; Checkbox2.Value = true) };
 ForAll(
 SelectedRecords As sr ;
 Patch(
 test;
 LookUp(test; ID = sr.ID);
 { SemaineProgrammee: Value(SemaineP_7.Text) }
 )
 )
)

 

 

 

 

 

 

 

this is the last one 

 

If(
 Checkbox2.Value = true;
 Patch(
 test;
 LookUp(test; ID = ThisRecord.ID);
 { SemaineProgrammee: Value(SemaineP_7.Text) }
 )
)

 

i tried with ThisItem but it doesnt work they tell me unknown term 

Categories:
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @meryem_gz ,

     

    Maybe you can try this:

    ForAll(Filter(Gallery.AllItems,Checkbox2.Value=true) As C,Patch(test;LookUp(test;ID=C.ID);{SemaineProgrammee:Value(SemaineP_7.Text)}))

    Best regards,

    Rimmon Li

  • Verified answer
    meryem_gz Profile Picture
    18 on at

    thank u for ur answer but it doesnt work 

     i tried this one and it works thank u 

    Patch(
     test;
     ForAll(
     Gallery2_1.AllItems;
     If(
     Checkbox4.Value = true;
     {ID: ID;
     SemaineProgrammee: Value(SemaineP_7.Text)
     }
     )
     )
    );; Reset(SemaineP_7)
    

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard