Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Subtotals format in Adobe forms when using javascript


I am calculating subtotals in adobe forms using java script and I am using numeric field to display.

Script code:

var qtotal = 0;

for (var j=0; j <=; j++){

var fields = xfa.layout.pageContent(j, "field", 0); 


for (var i=0; i <= fields.length-1; i++){

if (fields.item(i).name == "VALUE"){

qtotal = qtotal + fields.item(i).rawValue;




  1. this.rawValue = qtotal;

I am getting the output as 680,000 but I need it as  6.800,00 .

I tried using patterns but it’s not working.

Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question