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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,425)