about standard deviation

Avatar

Avatar

mea77

Avatar

mea77

mea77

11-06-2016

Please Dear..

i have used adobe livecycle designer Es2 for making form, i want to calculate the standard deviation for 5 feilds named (F1,F2,F3,F4,F5) which is numeric and i think that this can be done through a custom calculating script.. can you help me please in a code to perform this calculation... the previous was in adobe acrobat pro but when use the same code it does not work with adobe livecycle designer.. please help me in this issue

thsi was the code that i use in adobe acrobat pro:

var MyValues = new Array();

var MyFields = new Array("F1", "F2", "F3", "F4", "F5");

var oField;

var nField;

for(var i = 0; i < MyFields.length; i++)

{

  nField = '';

  nField = GetField(this, MyFields[i]).valueAsString;

  if(nField != "") MyValues.push(Number(nField));

}

event.value = standardDeviation(MyValues);

so i need code perform the same function for adobe livecycle designer

thank you

View Entire Topic

Avatar

Avatar

gkaiseril

Avatar

gkaiseril

gkaiseril

17-06-2016

I would put the functions at the document level so they would be available to any form field in the PDF. If one is computing the standard deviation the average moght also be in another field.