Hi,
I have a gallery and an edit form. I can select 1 item from the gallery to edit in the form.
I want to be able to select multiple items in the gallery to edit in the form with the same value for all items selected in the gallery. I basically want to set multiple items to the same value in a Sharepoint list field.
How can I do that?
Thanks a lot abm, you save my mind!
Hi , I am new in Power app , I encounter same problem as @andygp25 , and your solution is exactly what I want , can you share demo for reference?
sorry. we had a different time zone and he helped to get it done. i needed to finish for monday morning. thanks a lot
Hi @andygp25 ,
Not sure how you involved @abm in this.
Have you tried my suggestion? I spent considerable time putting together a working model to assist you.
I am also probably in a different timezone to you - 9:00am here in Australia.
As you can see below, the latest code works as per your specifications.
Hi @andygp25
Thanks for the screen share.
This is what we did to find the solution.
1. Filter the selected items.
2. Apply the Patch for the matching id's (Selected check box)
See below.
ForAll(RenameColumns(Filter(Gallery2.AllItems,Checkbox1.Value=true),"ID","ID1"),Patch('Travel Requests List',LookUp ('Travel Requests List',ID=ID1),{Travel_x0020_Status:Radio1.SelectedText}))
Thanks
Hi @andygp25 ,
Generally MyRadioButtonName.Selected.Value would need to be sent to the list if the Items for this is a Choice field or Choice list. A bit more condensed code below.
ForAll(
RenameColumns(
Filter(
MyGalleryName.AllItems,
MyCheckboxName.Value = true
),
"ID",
"IDRef"
),
UpdateIf(
MyListName,
ID = IDRef,
{MyListFieldName: MyRadioName.Selected.Value}
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
If the checkbox is selected
How can I change a field base on a radio button value?
thank you so much.
How would I do this if on the right I have a Radio button with 3 items showing horizontally?
OK @andygp25 ,
I don't know what stage you are in your PowerApps journey, but it is very important that you understand the process I am showing below to be able to adapt it to your needs. If you cannot adapt this, the editable gallery I mentioned may also be an option.
The gallery on the left is simply based on a list with a couple of fields (Text and Number type) that currently have not data in them. I used one of each to show the format required. The check boxes are inserted into the gallery and are not connected to any data field. All the the field, list and control names where I have used My at the start will need to changed to your items. Firstly the Submit button you see has the following code
ForAll(
RenameColumns(
Filter(
MyGalleryName.AllItems,
MyCheckboxName.Value = true
),
"ID",
"IDRef"
),
UpdateIf(
MyListName,
ID = IDRef,
{
MyTextFieldName: MyTextControlName.Text,
MyNumberFieldName: Value(MyNumberControlName.Text)
}
)
)
I assume you are using SharePoint and will have a unique ID number to work with. When working, it looks like this
One thing to note is that the input fields do not need to be on a form - you can have them as standalone items on the screen and this will work exactly the same.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473