web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SharePoint Currency fi...
Power Apps
Answered

SharePoint Currency field display as current in view/edit modes

(0) ShareShare
ReportReport
Posted on by 95

Hello,

 

I have a form that by default is in view mode.  There is a toggle which switches the value to edit mode.  The form links to a sharepoint list of which one of the fields is "Amount" which is a currency field.

 

This form in my app does not show the value as a currency.  To achieve this, I am using the following code in the default properties  this Text(Value(Parent.Default),"$#,##0.00","en-us").

 

This kind of works but I am getting an error:  The value $100 cannot be converted to a number.  

 

Is there a way to display the field with the $ sign while being able to switch between view and edit modes?

 

thanks

 

Categories:
I have the same question (0)
  • Verified answer
    v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @everdingk ,

     

    In the SharePoint List that Type is Int.

    When you change Default properties, it will show the Error Message.

    Please fill the formula as below in Format in DataCardValue.

    TextFormat.Text

    vhanytianmsft_0-1693881328400.png

    Please fill the formula as below in Update in DataCard.

    Value(Right(DataCardValue3.Text,Len(DataCardValue3.Text)-1))

    vhanytianmsft_1-1693881469012.png


    Hope this will help you,

    Best Regards,
    Tina

  • everdingk Profile Picture
    95 on at

    thanks @v-hanytian-msft 

     

    So the first part of your response is changing the field type to text.

    What exactly is the second part doing?

     

  • v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @everdingk ,

     

    We considered if you want to update data form Edit form to SharePoint List, it will change the String to Int without any Error Message.


    Best Regards,
    Tina

  • everdingk Profile Picture
    95 on at

    I am getting some runtime errors with this saying "The second argument to the 'Right' function is invalid."

     

    I think this occurs when the amount field is blank... How would I fix this?

     

  • Verified answer
    v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @everdingk ,

     

    Please try this:

    If(isBlank(DataCardValue3.Text),
     0,
     Value(Right(DataCardValue3.Text,Len(DataCardValue3.Text)-1)
    )

    Hope this will help you,

    Best Regards,
    Tina

  • everdingk Profile Picture
    95 on at

    Ah I almost had it... just not entirely sure what the Update property does.... thank you so much for your help

  • everdingk Profile Picture
    95 on at

    Ah so I just noticed when I type 55 into that field it is saving as $5 so it is dropping the last digit.

  • v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @everdingk ,

     

    In my Testing, this formula means dropping the first chart of DataCardValue.

    vhanytianmsft_0-1693893355747.png

    Best Regards,
    Tina

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard