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 do I format curren...
Power Apps
Answered

How do I format currency data in a Text input?

(0) ShareShare
ReportReport
Posted on by 330
I have a Text input data card on my form that I use to collect data from users. The field is used to collect currency data, and I want to format the entry in this format "$1,234.00" when users type in their values. 
How do I accomplish this?
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    To make it display after saving, you need the code below, You can also display it underneath in a Label using the same syntax, but referring to the control output rather than the field name.
    Text(ThisItem.YourFieldName, “$#,###.00”)
    If you want it to display immediately after the user enters this.
    Put this OnChange of the Text control.
    UpdateContext(
       {
          varInput: Text(
             Value(Self.Text),
             "$#,###.00"
          )
       }
    );
    Reset(Self)
    and the Format to
    TextFormat.Text
    If it is a Modern control, use .Value instead of .Text on both.
    Set the DelayOutput to
    true
    Now the Default of the Text control (assuming an existing value needs to be displayed)
    Coalesce(
       varInput,
       Text(
          ThisItem.YourNumberField,
          "$#,###.00"
       )
    )
    If this Form is only used for new records
    varInput
    and the Update of the Data Card you can leave it at 
    Value(YourTextInput.Text)
    
    again using .Value instead of .Text if a Modern control.
     
    Also reset varInput after you save (OnSuccess of your Form) and at Screen OnVisible
    UpdateContext({varInput: Blank()})
     
    Please Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like
    Visit my blog
    Practical Power Apps    LinkedIn  
  • Spawn10 Profile Picture
    330 on at
    @WarrenBelz Thanks a million for the input. Answered my question

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard