Avatar

Level 7

Hi Paul, below is the script I am using for the Total Score but does not work!

AssesE is the section which does not apply(It is not applicable, so there is no value).

What I am doing wrong?

Thank you

form1.#subform[0].Total::calculate - (JavaScript, client)

if (AssesE.rawValue="")
{
Total.rawValue=(AssesA.rawValue+AssesB.rawValue+AssesC.rawValue+AssesD.rawValue)/4;
}
else
{

Total.rawValue=(AssesA.rawValue+AssesB.rawValue+AssesC.rawValue+AssesD.rawValue+AssesE.rawValue)/5;
}