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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How do I 'unformat' th...
Power Apps
Answered

How do I 'unformat' the value in a text field before it is written to a Dataverse table?

(0) ShareShare
ReportReport
Posted on by 831 Moderator

I figured out how to take an integer that is entered into a text field and reformat it and write it back to the text field as a currency value by doing the following:

 

On OnChange property of the text field

 

UpdateContext({varCurrency: Text(Value(TXT_Budget.Text), "[$-en-US]$#,##0.00")})

 

 

Then I set Default to:

 

varCurrency

 

 

Works great. 

futr_vision_0-1704924025287.png

 

The problem is when I go to write this to the Dataverse table on form submission it gets written with the dollar sign, commas and periods. How can I covert this back to an integer before writing to the table?

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @futr_vision ,

    Try this

    Value(Substitute(YourTextInput.Text,"$",""))

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • futr_vision Profile Picture
    831 Moderator on at

    Where would I use this formula and will it handle the comma and decimal? It looks like it might only be addressing the "$". Actually, maybe the comma and decimal don't matter.

  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    @futr_vision ,

    Correct - the Value() function converts the comma and decimal correctly. You would use it probably on the Update of the Data Card.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard