Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

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:
  • luis_pflucker Profile Picture
    71 on at
    how to set color in numberinput
    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:
     
     
     
  • Michael E. Gernaey Profile Picture
    41,254 Super User 2025 Season 1 on at
    how to set color in numberinput
    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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard