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 / text input onchange ch...
Power Apps
Answered

text input onchange changing visibility

(0) ShareShare
ReportReport
Posted on by

I want an inputted number field to show in currency format.

The only way I can think of to do that is the let them put in the number, then make the field disappear and in its place show a label or button with the value altered to currency format in its place.  In has to disappear only when the user inputs the whole number, so putting the formula in visible property does not work.  I would make the label or button look like the input field so hopefully they wouldn't even know.  Then, if they want to change the number, they click on that button and the text field shows again (basically changing the visibility of the button).  But I cannot seem to change the visibility in the OnChange property of the field.  Help!

Here is what I have: in the OnChange property for the input field that does not seem to work.  I cannot get the input field to disappear.   

 

If(IsBlank(DataCardValue14.Text),DataCardValue14.Visible = true,DataCardValue14.Visible = false)

Categories:
I have the same question (0)
  • Verified answer
    shawn_fielding Profile Picture
    on at

    Nevermind.  I figured it out.  I did the following:

    1. Created a variable in OnChange.  If not populated = 0 if populated, 1.

    2. I then added the button, formatted it to look exactly like the input and made it visible with the variable was 1, so it hid the input exactly.  I made its text the number in currency format (though I still can't get commas in it).  

    3.  The button disappears if the user clicks on it, thinking they are clicking on the input to change it. They end up changing it in the input and when they focus somewhere else, the button comes back, showing the currency version again.  

    Pretty proud of that solution.  Kinda ridiculous work around, but it works.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard