If((!IsEmpty(Dropdown14.SelectedText.Value)||!IsBlank(Dropdown14.SelectedText.Value))&&(!IsEmpty(DataCardValue8)||!IsBlank(DataCardValue8)),(Patch('[dbo].[Sample]',
LookUp( '[dbo].[Sample]', sample_no = DataCardValue1.Text), {status: "Pass",condition:Dropdown14.SelectedText.Value,mark: DataCardValue8.Text})),NotificationType.Error);
I put this function in the OnSelect function of my update button, but it seem it will still update the data in SQL database even through the dropdown14 and datacardvalue8 is blank.
How I do it so it will prompt error notification if any one of the field is not filled by user?