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 / how to set color in nu...
Power Apps
Suggested Answer

how to set color in numberinput

(1) ShareShare
ReportReport
Posted on by 71
Hello,
please your help, I am trying to set a particular color in a numberinput value, I mean: if value is -999999 then color of number in numberinput box should be transparent or blank (I do not want to show -999999 but number should be there..).
I reviewed options in numberinput but did not find any.
 
 
 
Capture.JPG
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,968 Moderator on at
    HI
     
    Change the Color.
     
    If(Value(Self.Text) = -99999, Color.White,  RGBA(0, 0, 0, 1))
     
    In this case, my input is set to Numeric, however, when you want to compare I have to either turn my -9000 into a string
    or convert the Text (which is a string no matter what) into a Value and compare that.
     
    This causes my Font to have the White color, which is the default background color so its invisible in a sense.
    Otherwise its Black
     
    Understand that it wont vanish until they exit the controls focus

    If you are using a different control, you would still do the same thing.
  • luis_pflucker Profile Picture
    71 on at
    Hi FLMike , thanks for your suggestion,
    But I have a NumberInput, which is only numeric, then I tried with your formula in property Value as follow:
    Value = If(Value(Self.Text) = -99999, Color.White,  RGBA(0, 0, 0, 1))
     
    But getting error, it seems formula is not being recognized or maybe property Value is not the right property to try this suggested formula:
     
     
     

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 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard