Would you not want to test this before submitting the form? I am assuming you are using SubmitForm and it is before the expression you shared. Also assuming this error label is inside the form's data card that has DataCardValue3 text input control.
If so, can you try this on the submit button's OnSelect?
If(
IsMatch(
DataCardValue3.Text,
Email
) && Parent.DisplayMode = DisplayMode.Edit,
false,
true
)
Let me know if this works or if I misunderstood something.
---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions.
Thanks!
Hardit Bhatia
Microsoft Business Applications MVP
Blog | Twitter | LinkedIn | Facebook | YouTube | Email