Hello. I am a new (and non-technical) user and could use help.
On the first page of my app, I have a form (MainForm) where most of the fields are required. I have nested IF statements on the "next" button instructing PowerApps to navigate to screen FailureScreen if any of the required fields are blank/empty. If all required fields are not blank, then I want PowerApps to submit the form to my SP List AND I want to navigate to the next screen (profile pic) in my app.
This is what I have right now for the "Next" button OnSelect property:
If(IsBlank(FirstName),Navigate(FailureScreen),
If(IsBlank(LastName), Navigate (FailureScreen),
If(IsBlank(DisplayName), Navigate (FailureScreen),
If(IsBlank(HomeAddress), Navigate (FailureScreen),
If(IsBlank(MobileNumber), Navigate (FailureScreen),
If(IsBlank(EmailAddress), Navigate (FailureScreen),
If(IsBlank(StartDate), Navigate (FailureScreen),
If(IsBlank(EmployeeType), Navigate(FailureScreen),
If(IsBlank(OfficeLocation), Navigate(FailureScreen),
If(IsBlank(ManagerName), Navigate (FailureScreen),
If(IsBlank(Birthdate), Navigate (FailureScreen),
If(IsBlank(Technology), Navigate (FailureScreen),SubmitForm(MainForm))))))))))))) ;
Navigate('profile pic')
PowerApps is correctly writing to my SP List when all fields are full, but it always navigates to ProfilePic screen even if a field is left blank because it's the last command and not conditional.
How can I navigate to screen ProfilePic after the form is submitted AND only if all required fields are not empty? Thanks for your help.