Hi @keihimekawa ,
Do you add a Checkbox control inside your Gallery to control the visible of the Radio button control?
Do you mean that the chkBox becomes unticked once you execute your Patch formula?
Based on the issue that you mentioned, I think there is something wrong with the selected item collected in your SelectedItems collection.
I assume that you use the following formula to collect the selected item in your SelectedItems collection:
Collect(SelectedItems, ThisItem)
is it true?
If you use above formula to collect the selected item in your Gallery, I think your issue is related to it. If you execute the Patch formula via the OnChange property of the Radio button, the corresponding item would be updated (e.g. RadioColumn would be populated with proper value). But the selected item stored in your SelectedItems collection has not been updated, so the ThisItem in SelectedItems formula would return false in your Gallery.
As an alternative solution, I think it is not necessary to collect the whole item record into your SelectedItems collection, instead, you could collect the Primary Key column value of each selected item into the SelectedItems collection, I assume that the Primary Key column value of each Gallery Item would not be changed.
Please take a try with the following workaround:
Set the OnCheck property of the Checkbox (chkBox) to following:
Collect(SelectedItemsKey, ThisItem.PrimaryKeyColumn)
set the OnUncheck property of the Checkbox (chkBox) to following:
RemoveIf(SelectedItemsKey, Value = ThisItem.PrimaryKeyColumn)
set the Default property of the chkBox to following:
ThisItem.PrimaryKeyColumn in SelectedItemsKey
Please take a try with above solution, then check if the issue is solved.
Best regards,