Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

Arrays - Can this be done?

Avatar

Former Community Member
Working on 3 different forms and THIS one is almost READY.. So Please Help!



This federal form already has over 15 edits built into the print button. I even solved the looping problem



There are 51 columns that calculate 51 totals. Ex: each column has a (FieldA / FieldC) = FieldD. FieldD cannot be less than radio button checked (50 or 100) and if yes then messagebox appears.



Not all 51 columns are mandatory. My supervisor suggested to set up an ARRAY to check all 51 (FieldA and FieldB) to see if they are higher than 0 and if so then do the calculation.



I have searched forums and cannot find anything on Arrays 2 dimensional array is what need to be setup. I understand the basis of setting up arrays.

Var fieldarray = [];

Fieldarray[0,0] = fieldA[0].rawvalue;

Fieldarray[0,1] = fieldB[0].rawvalue;

Fieldarray[1,0] = fieldA[1].rawvalue;

Fieldarray[1,1] = fieldB[1].rawvalue;

Etc



What is the best way? Do I set up arrays as a Script Object? and How do I proceed?



I hope this make sense :-/



Thanks in advance!
0 Replies