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 Pages / if change the field fi...
Power Pages
Answered

if change the field field value the total value should also update

(0) ShareShare
ReportReport
Posted on by 31

unbeatbale_0-1626434693064.png

if I change the 

Salary-Wages =10 then 
Total Take-Home Income
also updated 
now totaling I am using 
$(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);
});
 
 
 
Categories:
  • Verified answer
    oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    Hi, is your "total" column a calculated column? or is the calculation only being done via JS?

     

    if it is related to your JS.. that is only running on the on load, but not on the on change of the salary wages column

     

    See this documentation for more info on how to apply code to the change event: https://api.jquery.com/change/

     

  • unbeatbale Profile Picture
    31 on at

    As I input the value to a field the total gets calculated

  • Verified answer
    unbeatbale Profile Picture
    31 on at
    it's now working
     
    $('input[typet=text]' ).change(function() {
                Monthly_Take_Home_Income();
                $( "#hope_takehomeincomeget" ).blur();
              });
    $(document).ready(function Monthly_Take_Home_Income(){
                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);
                });

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
M Bilal Khan Profile Picture

M Bilal Khan 139

#2
Mohsin Ali Profile Picture

Mohsin Ali 41

#3
11manish Profile Picture

11manish 21 Super User 2026 Season 2

Last 30 days Overall leaderboard