I have a single screen PowerApp form entry app that writes to a SharePoint list. It has a couple of drop downs that I populate from Sharepoint lists. I then also have a form on the page that is pointing at my main sharepoint list. The user selects values from the drop downs, enters some text into text boxes in the form. When they hit submit I then update some hidden text fields with values from the drop down and submit the form. The page then reloads for the user to make another entry All this works great. The issue comes up when resetting the drop down controls.
If I just submit the form and create new form all the fields in the form are reset but the drop downs retain their value
If I add reset commands after the form submits to reset the drop downs there is a problem if the user fogets to complete a mandatory field - error messages are displayed correctly but the commands to reset the drop down still executes and the user has to go back and reselect values.
So I need to find a way to only reset the drop downs if the form submits without any error messages before it loads the new reset screen. Anyone know how I can wrap the resets in an IF statement or is there somewhere else I can put the reset commands for the drop downs so it only resets if the form submits sucessfully without any errors.