radio button group, average values from 1 - 5, done. I can even auto format a summary text field and highlight appropriate summary responses BUT, I have been given two caveats for the average summary. IF a 2 is present, the value will be 2. IF a 5 is
I have a functioning set of tools in an inspection document (Utility industry recertification) that allows the user to select grades by question by section. There are seventeen sections and various numbers of questions per section...
Using a document level java script, I can create a summary average per section (separate calculation per section), highlight a checkbox in the section summary based on the average score that covers the requirements in that section, change colors to point out items for review.... So far, so good.
I am now working on a baffling part, and that is the variable section scoring parameters with two overriding considerations in the section score that
translates into the overall summary and follow on chart…I have tried various methods to extract the values of the radio buttons from an array looking for the 2 && 5 but so far, no joy.
- That no matter how the individual questions per section are scored (Exceeds, Satisfies, Partially Satisfies, Fails to Satisfy, N/A), if any one of the answers is ‘Fails to Satisfy Requirements’, then the section will be marked as “Key Attention Areas for Improvement”, and will show as a red bar on the summary chart.
- Second consideration is that if in any section that does NOT have a ‘Fails to Satisfy’, and has at least one Exceeds, will be marked as ‘Strong Performance’ and show a green bar on the summary chart.
- The other conditions where the scores by section do not have either an ‘Exceeds’, or ‘Fails’ will result in an averaging of the ‘Satisfies’ and ‘Partially Satisfies’. This will result in the bars being yellow (Generally Satisfactory) or blue(Satisfactory Performance) based on average score.
Any question marked ‘N/A’ is not included in the average.
I have this all working except for the #1 and #2 caveats above...
How much broken code do you need to see?
