Currency field in Power Apps Form

  • Currency field in Power Apps Form

    Posted by lisa-white on July 7, 2021 at 3:03 pm
    • Lisa White

      Member

      July 7, 2021 at 3:03 PM

      I have a Power App form. Data source is a SharePoint list, with aĀ column in the list named DollarValue. In the form, the user must enter a number representing currency (US).

      After searching and then watching one of Shane Young’s videos, I came up with this:

      Text(Value(Parent.Default),”[$-en-US]$ #,##0.00″)

      This is in BOTH Data > Default and Design > Format.

      When a new form opens, the field is correctly formatted:


      However, as soon as I enter numbers and move off the field, the currency format is gone:


      I’m guessing this has something to do with the Text function converting number to text. But how do I get it back as a formatted number?

      Thanks.

      ——————————
      Lisa White
      Senior IT Specialist
      Herndon VA
      703-709-7172
      ——————————

    • Mustafa Hussain Mohsin

      Member

      July 8, 2021 at 1:13 AM

      Hi

      I have made a test on my side, please take a try with the following steps:

      • Unlock the DataCard where you want to format the field to currency.
      • Within the DataCard, select theĀ TextInputĀ control.
      • Within right panel, setĀ DefaultĀ property to following formula:
        Text(Parent.Default,"[$-en-US]$#,###.00")?

      or

      Text(Parent.Default,"[$-en-US]$#.00")

      Image Reference

      ——————————
      Mustafa Hussain Mohsin
      Associate Data Analyst
      ——————————
      ——————————————-

    • Lisa White

      Member

      July 8, 2021 at 4:14 PM

      Thanks, . This worked great on the form when it’s in Edit mode. For some reason, it doesn’t work when the form is in New mode, using the same code in the DataCardValue on the form.

      What am I missing?
      ?

      ——————————
      Lisa White
      Senior IT Specialist
      Herndon VA
      703-709-7172
      ——————————
      ——————————————-

    • Mustafa Hussain Mohsin

      Member

      July 9, 2021 at 12:56 AM

      Hi

      I am glad that it worked for you. However??, PowerApps currently doesn’t have that functionality, But if you still want to have that kind of thing there is a workaround you have to include a text control for showing the Dollar Sign ($) in the dollar filed text control.

      If you want to test that, I can tell you about that. But as far as I understand showing Dollar sign is not necessary in the Input form for the New Form as you have already mentioned above Enter Dollar value and when you save it will show you the amount with Dollar sign.

      Hope it helps

      ——————————
      Mustafa Hussain Mohsin
      Associate Data Analyst
      ——————————
      ——————————————-

    lisa-white replied 4 years, 1 month ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Currency field in Power Apps Form’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!