Hello,
I'm trying to validate the form inputting before saving and the = sign in the if condition part of the statement is showing an error. I've tried evaluating the selected text and the value of the selected text, but can't seem to get the syntax correct.
For example (these both do not work):
(drpGoalStatusKey.SelectedText = "Achieved" || drpGoalStatusKey.SelectedText = "Not Achieved") && IsBlank(dteGoalEndDate)
(drpGoalStatusKey.Selected = 3 || drpGoalStatusKey.Selected = 4) && IsBlank(dteGoalEndDate)
If((drpGoalStatusKey.SelectedText = "Achieved" || drpGoalStatusKey.SelectedText = "Not Achieved") && IsBlank(dteGoalEndDate)
, Notify("Save cancelled because end date should not be blank if status is achieved or not achieved.")
, SubmitForm(frmGoals);
);
Could someone please help me correct this?
Thanks,
J