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 / Currency format for te...
Power Apps
Answered

Currency format for text input control

(0) ShareShare
ReportReport
Posted on by 362

I am using a solution to format the text in a text input control to a currency format using a variable, like so:

 

Set(varCurrency,Text(RoundUp(Value(TextInput3.Text),2),"[$-en-US]$#,###.00"))

 

(kudos to  N. Milligan for the original solution https://easypowerplatform.com/2020/08/31/format-text-as-currency-in-power-apps/).

 

The solution works perfectly, except I can't get it to work using the € symbol. Can someone advise how to change the string above to the € format?

 

Thanks!

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    You'll need to change the [$-en-US] if you want to use the Euro marking.  LIke this

    Set(varCurrency,Text(RoundUp(Value(TextInput3.Text),2),"€###,##0.00"))
  • Gilmour Profile Picture
    362 on at

    I tried to apply your string to the OnChange property of the text input but after entering the number, the box clears and remains empty...

     

    The string works... the variable value is in the correct format (I tested it on a text label), but the text input goes blank... Maddening! 

  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    I just tested it and it works for me.  The one issue you might run into is that default only applies before the user enters text into a TextInput control.  So if you are tweaking the formula without saving and reloading from scratch it might keep the previous value as the Text rather than reverting to the default.  To see if that is what it is try adding a Reset(TextInputName) to a button on the screen and reset the button before entering text.  In my testing that appears to be what is happening.

  • Gilmour Profile Picture
    362 on at

    Tried, no success. The input is controlled by - and sets - a variable, so default should apply before and after the text is entered. I'll start from scratch in a new app and see if that does the trick. Thank you for helping!

  • Verified answer
    Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    I'm not clear on what you mean when you say the input is "controlled by - and sets - a variable".  Is the user Typing into the TextInput box, like example 1 in the article?  or typing into a TextInput box and setting a label like example 2?  If its #1 then default will no longer apply after the user types something into the box and leaves the box the first time. Not until the control is Reset().

  • Gilmour Profile Picture
    362 on at

    I was on a deadline, so I ended up abandoning the idea of having a currency symbol in the box... Will keep this thread for my next currency box mishap. Thank you for your help!

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard