Hello I have a PDF file with 2 pages and 3 fields in total, I need to add together two of the fields to get the net_asset_total. The 2 fields that are to be added together are actually subtotals themselves of other calculations. See below
[color=RED]Page 1: field: t1_total_voa
----- topmostSubform.Page1.t1_total_voa::calculate: - (JavaScript, client) -------------------------
this.rawValue = t1_voa1.rawValue + t1_voa2.rawValue + t1_voa3.rawValue + t1_voa4.rawValue + t1_voa5.rawValue + t1_voa6.rawValue + t1_voa7.rawValue;[/color]
[color=BLUE]Page 2: field: t2_total_lia
----- topmostSubform.Page2.t2_total_lia::calculate: - (JavaScript, client) -------------------------
this.rawValue = t2_amount_lia1.rawValue + t2_amount_lia2.rawValue + t2_amount_lia3.rawValue + t2_amount_lia4.rawValue;[/color]
[color=GREEN]Page 2: field: net_asset_total
----- topmostSubform.Page2.net_asset_total::calculate: - (JavaScript, client) ----------------------
this.rawValue = t1_total_voa.rawValue + t2_amount_lia2.rawValue;[/color]
[b]RESULT:[/b]
Script failed (language is javascript; context is xfa[0].form[0].topmostSubform[0].Page2[0].net_asset_total[0])
script=this.rawValue = t1_total_voa.rawValue + t2_amount_lia2.rawValue;
Error: t1_total_voa is undefined
It seems it doesnt like to calculate over different pages, how can I do this? And also is there an easy way to calculate, this is just some code I found on google and it worked up until this point, so if there is a better way, i would appreciate it if you could let me know.
George Kaiser