My app has a screen for users to verify that the displayed data is theirs. This screen contains two forms, each storing related data to a different SharePoint library (Form1 -> library 1, Form2 -> library 2) and controlled by one submit button. The data in these forms doesn’t need to be validated for user input errors, as it is all retrieved from another SharePoint library; thus, already correct.
However, once the submit button is pressed, it is crucial that both forms will be submitted or none at all, as the data is related. If an error occurs in the system or for whatever reason possible, e.g. internet dropped, both forms should be refrained from submitting.
As for now, in the OnSuccess property, I navigate the user to a “Successfull” page, but this would always navigate the user to the page.
Is there a way to:
If Form1=successfull and Form2=successfull
Action: submission successfull -> navigate to page
If Form=failed and Form2=successfull
Action: stop submitting Form2, notify error
If Form=successfull and Form2=failed
Action: remove Form1 submitted data from SharePoint library 1, notify error
Many thanks in advance! I’m new to this so all the help is appreciated.