web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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 142 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:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,477 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

  • Ami K Profile Picture
    15,679 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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 403

#2
WarrenBelz Profile Picture

WarrenBelz 338 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 320 Super User 2025 Season 2

Last 30 days Overall leaderboard