cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RickBr
Frequent Visitor

Currency format while typing in PowerApps

Hello!

 

Is there an way to have the currency format (like US$) while typing the value/price in PowerApps app?

 

We found an way, in the KB, to formar the field in the exibition (after input), but users get confused when typing the numbers in PowerApps forms.

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @RickBr,

 

Do you want to format the value as currency format ($) when you type value/price in TextInput control?

 

I have made a test on my side, if you want to format the value as currency format ($) when you type value/price in TextInput control, I afraid that there is no direct way to achieve your needs in PowerApps currently.

 

As an alternative solution, please take a try with the following workaround:

 

  • Add a TextInput control (TextInput1) and a Label control (Label1) within the screen, put the Label control within the TextInput control.
  • Set the Text property of the Label control (Label1) to following formula:

 

"$"

Set the Align property of the Label control to following:

 

 

Align.Center

Set the Visible property of the Label control to following:

 

 

If(!IsBlank(TextInput1.Text),true,false)

 

 

  • Set the PaddingLeft property of the TextInput control (TextInput1) to following formula:
Label1.Width

The GIF image as below:Test1.gif

 

 

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Drrickryp
Super User II
Super User II

Hi @RickBr,

 

If you put "$" in the Default property of the TextInput control It will stay there when the user adds the number.  You can strip the $ off when you save the data with either Value(Texinput1.Text) or Mid(TextInput1.Text,2).  The first will truncate the number by removing trailing 00, the latter will save the number with trailing 00. $$.PNG

v-xida-msft
Community Support
Community Support

Hi @RickBr,

 

Do you want to format the value as currency format ($) when you type value/price in TextInput control?

 

I have made a test on my side, if you want to format the value as currency format ($) when you type value/price in TextInput control, I afraid that there is no direct way to achieve your needs in PowerApps currently.

 

As an alternative solution, please take a try with the following workaround:

 

  • Add a TextInput control (TextInput1) and a Label control (Label1) within the screen, put the Label control within the TextInput control.
  • Set the Text property of the Label control (Label1) to following formula:

 

"$"

Set the Align property of the Label control to following:

 

 

Align.Center

Set the Visible property of the Label control to following:

 

 

If(!IsBlank(TextInput1.Text),true,false)

 

 

  • Set the PaddingLeft property of the TextInput control (TextInput1) to following formula:
Label1.Width

The GIF image as below:Test1.gif

 

 

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Ridiculous that you have to jump through these hoops for a very mediocre solution to something so basic.  

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (61,112)