Hi Team,
I have a gallery with 23 questions and for each question, I have 3 controls one radio button with Yes/No/NA, a Comment text box and a checkbox which is linked to the radio button and comment box.
For the screen OnVisible property, I have added code
UpdateContext({ResetCheckbox:true});
UpdateContext({ResetCheckbox:false})
The ResetCheckbox, I have used on reset Property of the checkbox. The default value of the checkbox I have the code - If(!IsBlank(AnsRadio) && !IsBlank(txtComments),true,false). This is to ensure all questions are answered using radio button and comments added for each of them, only then the Submit button is made visible. On Submit button I have used ForAll gallery items to be patched in SharePoint list with necessary values updated in the form and gallery screen.
Once Submit, it is navigated to the summary page and once I click new again the Checkbox does not get reset to uncheck mode. It still shows checked. The radio button responses are collected in a variable for onchange property as Set(ColAns,AnsRadio.Selected.Value).
Could you please assist in how to reset the gallery as blanks for user to update their next set of responses.
Thanks in advance for your support.
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional