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 / Formatting datacard va...
Power Apps
Unanswered

Formatting datacard value to have decimal once out of focus

(0) ShareShare
ReportReport
Posted on by 165 Season of Giving Solutions 2025

Hi,

 

My user wanted to see that after she have entered an amount ex. 123. it will become 123.00 once out of focus. I only got to the point where it will be formatted after saving using the default property. Wanted to check if my use case is possible in power apps. 

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @powerdevkris - not the answer you will want to hear, but it is not possible to format a Text Input control even if the Text Input control is not actively selected. You can however display the formatted value in a separate Label control and hide that Label control conditionally.

     

    For example, when your EditForm is in View Mode, you can hide the Text Input control and make the Label visible, and when the Form is in New or Edit Mode, you can display the Text Input control and hide the Label control.

  • WarrenBelz Profile Picture
    156,958 Most Valuable Professional on at

    Hi @powerdevkris ,

    You can do it but very messy. I also assume you want to display existing data source field values in there.
    Firstly, your Text input (Classic Control example here) needs to be set as Text (not Number). Also set the DelayOutput to true
    OnSelect of the Text Input

    UpdateContext({varValue: Blank()})

    also put this after your SubmitForm code and at Screen OnVisible
    . OnChange of the Text Input

    If(
     IsNumeric(Self.Text),
     UpdateContext(
     {
     varValue: 
     Text(
     Value(Self.Text),
     "###.00"
     )
     }
     )
    )

    Now the Default of the Text Input

    Coalesce(
     varValue,
     Text(
     ThisItem.YourNumberField,
     "###.00"
     )
    )

    and last the Update of the Data Card

    Value(YourTextInputName.Text)

     

    Please click Accept as solution 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 giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard