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 / How to update textbox ...
Power Apps
Answered

How to update textbox value only when selected checkbox

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Mates,

How do i update rows when only the correspond checkbox selected, means if check box is not Selected(checked) should not update.

if you see below three controls are there Lable,Textbox,CheckBox.

checkbox.PNG 

from the above screen, only three checkboxes are selected means (respective textbox values has to update when click on button,

if selected only two checkbox then respective textbox values should update in corresponding rows.

As of now i can update with below formula where name=testname from single textbox.

Patch('[dbo].[Test]',First(Filter('[dbo].[Test]',name="testname")),title: Txtbox.Text})

but how do i get only textbox values from selected checkbox rows..

your help is highly appreciated.

 

Categories:
  • eka24 Profile Picture
    20,925 on at

    Are the texboxes in a Gallery?

    If not are you patch all of them to title collumn or different columns

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @eka24 

    TextBox is in gallery only. as i said there are three controls in gallery.

     

    Can`t we update If Text box in gallery,..?

  • eka24 Profile Picture
    20,925 on at

    I didn't see gallery in your request.

    Try on OnCheck of the checkbox:

    Patch('Data Source', ThisItem, {Title: TextboxName.Text})

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    OnVisible of the Screen
    ClearCollect(MyColl,Defaults(YourTable))

    Use:

    OnCheck Of the CheckBox:

    Patch(MyColl, ThisItem,{Title:Textbox1.Text})

     

    OnUncheck Of the CheckBox:

    If(ThisItem.ID exactin MyColl.ID, Remove(MyColl, LookUp(MyColl,ID=ThisItem.ID)))

     

    After you are Ok with Ticking all the CheckBox, Patch using the Button On your Screen not inside the Gallery

    ForAll(MyColl, Patch(YourTable,Defaults(YourTable),

    {Title:Title}))

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find 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

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 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard