@jasminemeneses
Or is a function in Power Apps and it's not a valid operator that can be used like the way you are doing here.
You have to use || instead if you use it that way.
If you want to use the word Or, it's like this instead:
If(
Or(
IsBlank(ComboBox1),
IsBlank(DataCardValue18),
IsBlank(DataCardValue23),
IsBlank(DataCardValue24)
),
Notify("Must fill all the requirements.", NotificationType.Error),
If(
Value(varRequiredCashCount) > 0,
(
Patch(
'RBG Cash Count',
{ID: varBranchCashCount.ID, 'Required Cash Count': varRequiredCashCount - 1}
);
UpdateContext({varRequiredCashCount: varRequiredCashCount - 1});
SubmitForm(Form1);
ResetForm(Form1);
Navigate(HomeScreen, ScreenTransition.Fade);
Notify("Submission successful. Required cash count has been updated.", NotificationType.Success)
),
Notify("Submission failed. Required cash count has reached 0 for the selected branch.", NotificationType.Error)
)
)
or to use Or the way you were doing initially you must use || instead like this:
If(
IsBlank(ComboBox1) ||
IsBlank(DataCardValue18) ||
IsBlank(DataCardValue23) ||
IsBlank(DataCardValue24),
Notify("Must fill all the requirements.", NotificationType.Error),
If(
Value(varRequiredCashCount) > 0,
(
Patch(
'RBG Cash Count',
{ID: varBranchCashCount.ID, 'Required Cash Count': varRequiredCashCount - 1}
);
UpdateContext({varRequiredCashCount: varRequiredCashCount - 1});
SubmitForm(Form1);
ResetForm(Form1);
Navigate(HomeScreen, ScreenTransition.Fade);
Notify("Submission successful. Required cash count has been updated.", NotificationType.Success)
),
Notify("Submission failed. Required cash count has reached 0 for the selected branch.", NotificationType.Error)
)
)
See if it helps @jasminemeneses