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
Highlighted
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

Highlighted
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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,641)