cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RickBr
Level: Powered On

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
Community Support Team
Community Support Team

Re: Currency format while typing in PowerApps

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

2 REPLIES 2
Super User
Super User

Re: Currency format while typing in PowerApps

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

Community Support Team
Community Support Team

Re: Currency format while typing in PowerApps

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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,718)