web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Submit button not enab...
Power Apps
Answered

Submit button not enabling

(0) ShareShare
ReportReport
Posted on by 20

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!

 

 

Categories:
I have the same question (0)
  • Verified answer
    Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    The label may not be showing text but it still has the Char(13) & Char(10) values in it. Try using trim in your conditions test to remove the extra characters. See example below:

     

    If(Form1.Valid && IsBlank(Trim(lblErrorMessage.Text)),DisplayMode.Edit,DisplayMode.Disabled)

  • mjgenesis Profile Picture
    20 on at

    It worked.  Thank you very much.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard