Hi!
I'm brand new to learning Power Apps and don't have any experiencing with coding, so if the answer is obvious, or the way I talk about the code is incorrect, please be patient with me.
Problem:
The following code placed on a submit button for a patch of several forms, is working properly. However, it is NOT posting the success command at the end of the second If statement.
By "working properly" I mean that the If statement functions as it should in terms of whether or not it runs the patch, based on the date. What's not working, again, is that it will display the error "Week ending date is in the past, Please see office administrator for past due time entries" whether it runs the patch command (or not).
If(DateTimeValue(DataCardValue4) < Now(),
Notify("Week ending date is in the past, Please see office administrator for past due time entries",NotificationType.Error),
If(!IsBlank(DataCardValue1)
&& !IsBlank(DataCardValue6)
&& !IsBlank(DataCardValue4),
Patch('Employee Timesheet',
Defaults('Employee Timesheet'),
Form1.Updates,Form2.Updates,Form3.Updates,Form4.Updates,Form5.Updates,Form6.Updates);
NewForm(Form1);
NewForm(Form2);
NewForm(Form3);
NewForm(Form4);
NewForm(Form5);
NewForm(Form6);
ResetForm(Form1);
ResetForm(Form2);
ResetForm(Form3);
ResetForm(Form4);
ResetForm(Form5);
ResetForm(Form6);
Notify("Your time has been submitted",NotificationType.Success),
Notify("Please check required fields",NotificationType.Error)))