Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Unanswered

how to Add currency symbol($) after the field value is been total

(0) ShareShare
ReportReport
Posted on by 31

as you can initially all is zero

unbeatbale_1-1626437812436.png

As I enter the value and click on submit the symbol appears with the value but it doesn't appear in total 

 

unbeatbale_0-1626437702567.png

both are field types is the currency 

I am using this code for totaling

/////Monthly Take-Home Income////
$(document).ready(function(){
var hope_salary_wages= $("#hope_salary_wages").val();
var hope_salary_spouse= $("#hope_salary_spouse").val();
var hope_dividends=$("#hope_dividends").val();
var hope_pensionplan_retirement= $("#hope_pensionplan_retirement").val();
var hope_socialsecurity=$("#hope_socialsecurity").val();
var hope_interestincome=$("#hope_interestincome").val();
var hope_unemployment_foodstamps=$("#hope_unemployment_foodstamps").val();
var hope_realstate=$("#hope_realstate").val();
var hope_militarypay=$("#hope_militarypay").val();
var hope_alimony_childsupport=$("#hope_alimony_childsupport").val();
var hope_royalties_otherincome=$("#hope_royalties_otherincome").val();
hope_takehomeincome = parseInt(hope_alimony_childsupport)+
parseInt(hope_salary_wages)+parseInt(hope_salary_spouse)+parseInt(hope_dividends)+parseInt(hope_pensionplan_retirement)+parseInt(hope_socialsecurity)+parseInt(hope_interestincome)+parseInt(hope_unemployment_foodstamps)+parseInt(hope_realstate)+parseInt(hope_militarypay)+parseInt(hope_royalties_otherincome);
$("#hope_takehomeincome").val(hope_takehomeincome);
});

Any help would be great!!!

 

  • oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on at
    Re: how to Add currency symbol($) after the field value is been total

    Hi, please take a look at this article as I think it will be very helpful: https://www.engineeredcode.com/blog/power-apps-portals-using-bootstrap-input-groups-with-your-basic-or-advanced-forms

     

  • unbeatbale Profile Picture
    31 on at
    Re: how to Add currency symbol($) after the field value is been total

    @BCBuizer unbeatbale_0-1626443215193.png

    i have removed parsInt now  its showing like this in total that's why I have use parseint

    /////Monthly Take-Home Income////
    $(document).ready(function(){
    var hope_salary_wages= $("#hope_salary_wages").val();
    var hope_salary_spouse= $("#hope_salary_spouse").val();
    var hope_dividends=$("#hope_dividends").val();
    var hope_pensionplan_retirement= $("#hope_pensionplan_retirement").val();
    var hope_socialsecurity=$("#hope_socialsecurity").val();
    var hope_interestincome=$("#hope_interestincome").val();
    var hope_unemployment_foodstamps=$("#hope_unemployment_foodstamps").val();
    var hope_realstate=$("#hope_realstate").val();
    var hope_militarypay=$("#hope_militarypay").val();
    var hope_alimony_childsupport=$("#hope_alimony_childsupport").val();
    var hope_royalties_otherincome=$("#hope_royalties_otherincome").val();
    hope_takehomeincome = hope_alimony_childsupport+
    hope_salary_wages+hope_salary_spouse+hope_dividends+hope_pensionplan_retirement+hope_socialsecurity+hope_interestincome+hope_unemployment_foodstamps+hope_realstate+hope_militarypay+hope_royalties_otherincome;
    $("#hope_takehomeincome").val(hope_takehomeincome);
    });

     

  • BCBuizer Profile Picture
    22,262 Super User 2025 Season 1 on at
    Re: how to Add currency symbol($) after the field value is been total

    As far as I know, the ParseInt function converts the input to a number and I see a lot of those in your code in the part where you are adding up the hope_takehomeincome. Perhaps you can just leave those out:

     

     

    /////Monthly Take-Home Income////
    $(document).ready(function(){
    var hope_salary_wages= $("#hope_salary_wages").val();
    var hope_salary_spouse= $("#hope_salary_spouse").val();
    var hope_dividends=$("#hope_dividends").val();
    var hope_pensionplan_retirement= $("#hope_pensionplan_retirement").val();
    var hope_socialsecurity=$("#hope_socialsecurity").val();
    var hope_interestincome=$("#hope_interestincome").val();
    var hope_unemployment_foodstamps=$("#hope_unemployment_foodstamps").val();
    var hope_realstate=$("#hope_realstate").val();
    var hope_militarypay=$("#hope_militarypay").val();
    var hope_alimony_childsupport=$("#hope_alimony_childsupport").val();
    var hope_royalties_otherincome=$("#hope_royalties_otherincome").val();
    hope_takehomeincome = hope_alimony_childsupport +
    hope_salary_wages + hope_salary_spouse + hope_dividends + hope_pensionplan_retirement + hope_socialsecurity + hope_interestincome + hope_unemployment_foodstamps + hope_realstate + hope_militarypay + hope_royalties_otherincome;
    $("#hope_takehomeincome").val(hope_takehomeincome);
    });

     

     

     

  • unbeatbale Profile Picture
    31 on at
    Re: how to Add currency symbol($) after the field value is been total

    @BCBuizer thanks for the reply

    can you please give me one example  or demonstrate what I have done wrong so that I can correct my mistake 

  • BCBuizer Profile Picture
    22,262 Super User 2025 Season 1 on at
    Re: how to Add currency symbol($) after the field value is been total

    Without fully understanding your code, aren't you converting the datatype from currency to number? That would explain why the dollar sign is missing.

     

    Below link gives guidance on how to display a number as currency:

     

    How to format number as currency in PowerApps - SPGuides

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35