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

Notifications

Announcements

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.
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,360 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard