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 Pages / how to Add currency sy...
Power Pages
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!!!

 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    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

  • unbeatbale Profile Picture
    31 on at

    @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,505 Super User 2025 Season 2 on at

    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

    @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);
    });

     

  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    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

     

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 Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard