Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

New to Adobe....Question about calculations

Avatar

Former Community Member
I am doing something that I thought was relatively simple. I have created a form with numerous NumericFields, that I just need to have calculated at the bottom of my document. I thought that I got it figured out, becuase the fields actually calculate where I need them to, however when opening my document, an error shows...



Script failed (language is formclac; contect is xfa[0].form[0].F[0].P1[0].NumericField12[0])

script=sum1

Error:accessor 'sum1' is unknown.



Can anyone help with what this means?? Your help is GREATLY appreciated!!!
1 Reply

Avatar

Former Community Member
Assuming that you are using formcalc and all the numeric fields has the same name as price[1], price[2], price[3] ....and so on. You can calculate the total by using Sum(price[*])



There is many examples that come with Designer. One of which is the purchase order example. You will find similar calculation being done in that form.