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 / Validate Field Value b...
Power Apps
Answered

Validate Field Value before Patch Save

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,
I need to notify the user if a required field is empty either by making the control border red or displaying a notification or hiding the submit button.
The submit button runs the patch and I dont want it to happen until all required fields are satsified.

Categories:
  • Verified answer
    timl Profile Picture
    37,424 Super User 2026 Season 2 on at

    Hi @Anonymous 

    You can do this by setting the border property of the text input control conditionally like so:

    If(IsBlank(TextInput1.Text),
     Color.Red,
     Color.Black
    )
    

    You can apply the same logic to a button by setting the display mode property like so:

    If (IsBlank(TextInput1.Text), 
     DisplayMode.Disabled, 
     DisplayMode.Edit
    )

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard