I have a form and a comboBox in same page and sharepoint list as backend. the form defaultMode is New. After user choose a person from the combobox, if the person in the list, the FormMode should be Edit; Otherwise, should be New .
Below is the code for comboBox onChange
If(!IsBlank(LookUp(List, Email =combo.Selected.Email)),EditForm(Form1),NewForm(Form1))
Current result is, if the person in the list, the Form1 is in Edit Mode, but if person not in list, Form shows "No Item to Display"
Could you please help to give some advice.
Thanks