Hi guys
I am struggling a lot with the syntax of Power apps. I am never quite sure how many semicolons i have to use.
Even worse, i dont know how to stack multiple if statements within eachother:
If ('Form_Certification_Process_Basic-Info'.Mode = FormMode.New;
If (IsBlank(Applied_Role_DataCardValue.Selected.Value);
Notify("The Required Field 'Applied Role' under Basic-Info can't be empty"; NotificationType.Error;2000);
Patch(
'Certification Process';
Defaults('Certification Process');
'Form_Certification_Process_Basic-Info'.Updates;
Form_Certification_Process_Work_Experience.Updates;
Form_Certification_Process_Project_Completion.Updates;
Form_Certification_Process_Project_Summaries.Updates
);;
Notify("Changes have been Saved";NotificationType.Success;2000);;
);; //This should be the end of the DATA if Form Mode is new -
//Else should follow
Patch(
'Certification Process';
ThisItem;
'Form_Certification_Process_Basic-Info'.Updates;
Form_Certification_Process_Work_Experience.Updates;
Form_Certification_Process_Project_Completion.Updates;
Form_Certification_Process_Project_Summaries.Updates
);
Notify("Changes have been Saved";NotificationType.Success;2000)
)
I want the second IF statement including the whole Content to be the action if Form Mode is new.
In my code however the second Patch is being executed if the Form Mode is new as well - can anyone explain what point i am missing?