Hi there,
I want to prevent a form resetting on submission and navigation to the next page. I have a two screen app and the issue occurs both when navigating 'back' from Screen 2 to Screen 1 and with the population of an HTML text box on Screen 2 based on answers from Screen 1.
- Screen 1 contains a form ["Form1"] linked to a Sharepoint List ["SPList1"] and a dynamically generated gallery with radio buttons ["GalleryRadio"] linked to a separate Sharepoint list ["SPList2"].
- Screen 2 contains another dynamically generated gallery with free text fields ["GalleryFreeText"] and is also linked to Sharepoint List "SPList2" and an HTML text box ("HTMLText1") that recalls the user input responses from "Form1" and "GalleryRadio", however, I am finding that "Form1" is resetting itself and therefore this box appears blank.
On Screen 1, there is a "Next" button that has the following property "OnSelect":
//Patch and Save GalleryRadio Question Responses
Clear(colResponseValues);
ForAll('GalleryRadio'.AllItems, Collect(colResponseValues, {Title: ThisRecord.Title, ParentID: ThisRecord.ParentID , QuestionName: ThisRecord.QuestionName, RadioResponse: Radio2_1.Selected.Value}));
Patch('SPList2', colResponseValues);
//Submit form
SubmitForm(Form1)
Navigation is triggered in the "OnSuccess" property of the form:
Navigate('Screen 2')
The "OnReset" property for Form1 is set as false.
Any assistance or ideas will be greatly appreciated!