Hi @Anonymous ,
Do you want to prevent the Radio button from being reset?
Could you please show more details about the formula you typed within the "Comment" button and the ">" icon?
Have you type some Reset(Radio1) formula within the "Comment" button or the ">" icon? Have you modified records in your 'UAT Radio' when press the "Comment" button or the ">" icon?
Based on the issue that you mentioned, I have made a test on my side, and do not have the issue that you mentioned. When I press the "Comment" button or the ">" icon, the Radio1 control would not be reset, unless, I type the Reset(Radio1) formula within the "Comment" button or the ">" icon, or type some Patch formula to update records in my data source the Gallery connected to.
As an fixed solution, you could consider store the answered item into a collection when you press the "Comment" button or the ">" icon. Then set the Default value for the Radio control based on the Question Name against the saved collection.
I have made a test on my side, please consider take a try with the following workaround:
Set the OnSelect property of the "Comment" button and the ">" icon to following:
If(
Not(ThisItem.Name in TempCollection.Title),
Collect(
TempCollection,
{
Title: Name,
Answer: Radio1.Selected.Value,
Namee: User().FullName,
Date: Today(),
Country: First(Office365Users.SearchUser({searchTerm: User().Email})).Country
}
),
Patch(
TempCollection,
LookUp(TempCollection, Title = ThisItem.Name),
{
Answer: Radio1.Selected.Value
}
)
)
Set the Default property of the Radio control to following:
LookUp(TempCollection, Title = ThisItem.Name).Answer
Then modify formula within your "Submit" button to following:
ForAll(
TempCollection,
Patch(
'UAT Radio',
Defaults('UAT Radio'),
{
Title: TempCollection[@Title],
Answer: TempCollection[@Answer],
Namee: TempCollection[@Namee],
Date: TempCollection[@Date],
Country: TempCollection[@Country]
}
)
)
Set the Fill property of the Star Icon to following:
If(
!IsBlank(LookUp(TempCollection, Title = ThisItem.Name)),
Switch(
LookUp(TempCollection, Title = ThisItem.Name).Answer,
"Works", Green,
"Has issues", Yellow,
"Does not work", Red
)
)
Please consider take a try with above solution, check if the issue is solved.
Best regards,