My Submit button has the following setting for the DisplayMode property requiring there to be no errors with the form to work.
If(Form1.Valid && IsBlank(lblErrorMessage.Text),DisplayMode.Edit,DisplayMode.Disabled)
I have created a Label (lblErrorMessage) with the following formula for the TEXT value to display an error message if the email addresses are not formatted correctly in their respective input fields. However, when I run/test the form my Submit button remains grayed out as if there is some text still inside lblErrorMessage.
If(And(Not(IsMatch(inpBillEmail.Text, Match.Email)),Not(IsBlank(inpBillEmail))), "-Please verify your Billing email address is correct") & Char(13) & Char(10) &
If(And(Not(IsMatch(inpContactEmail.Text, Match.Email)),Not(IsBlank(inpContactEmail))), "-Please verify your Contact email address is correct") & Char(13) & Char(10) &
If(And(Not(IsMatch(inpContact2Email.Text, Match.Email)),Not(IsBlank(inpContact2Email))), "-Please verify your Contact 2 email address is correct")
Consequently, if I add the following to the end ( & Char(13) & Char(10) &) my Submit is available, but my formula will have errors expecting an operand and with an invalid argument type.
I would like the button to remain disabled until there are no errors on the form and all email input fields are formatted properly. I am new to Powerapps, so I'm hoping this is some easy newbie blunder. Thanks in advance!