//Old method of submit form
//SubmitForm(FormShiftData);
Patch('MWOS_Data_LN', Defaults('MWOS_Data_LN'), FormShiftData.Updates,FormRejectData.Updates);
If(
// check if there were any errors when the test score was submitted
!IsEmpty(Errors('MWOS_Data_LN')),
// if true, show any error message
Notify(
Concat(Errors('MWOS_Data_LN'), Column&": "&Message),
NotificationType.Error
),
// else, go to success screen
ResetForm(FormShiftData);
ResetForm(FormRejectData);
Refresh(ExistingRecordsView);
Navigate(ViewMainScreen,ScreenTransition.Fade);
)