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 / Handle blank textinput...
Power Apps
Answered

Handle blank textinput highlight unsaved form

(0) ShareShare
ReportReport
Posted on by 776

Hi Experts

 

How to show unsaved changes for a blank text input control inside a form control

 

As when the user edits the form control textinput will be blank

 

If the user enters any text - border color should change and highlight unsaved change

 

But if the user remove what he entered, border color should change back to normal

 

Please advise

Categories:
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @AshishJaiswal Set the BorderColor property of the TextInput to (rename theFieldName as required),

    If(ThisItem.theFieldName=Self.Text, Color.Black, Color.Red)

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @AshishJaiswal 

    If it is just text, then on the Datacard BorderColor property, you can set it to:

    If(Self.Default <> Self.Update, Red, Transparent)

    This will give you a red border around the datacard.

     

    If you want it only on the TextInput, then change the BorderColor property of the TextInput controls to:

    If(Parent.Default <> Parent.Update, Red, Black)

     

    You can change the colors you want in the formulas as you would like.  Make sure as well that the border thickness on those controls is 1 or more.

     

    I hope this is helpful for you.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard