You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.
Currently, the accordion header color in the certification survey changes color from blue to orange when all answers are completed (independent of whether the answers are correct).
It would be helpful to the user to have the color change to green if all answers are correct.
The text was updated successfully, but these errors were encountered:
This is a bit involved since the front-end JavaScript doesn't calculate or keep track of the correct answers. The JavaScript code that changes the color is in the file WebContent/resources/certsurvey.js near the end of function updateSectionQuestionCounts(section).
There is enough information returned in the function getSurvey() to accomplish the calculations, but it needs to take into account several factors. It would essentially duplicate code in the Java backend.
A different, perhaps better approach would be to replace the current JavaScript code which looks to see if all questions have been answered with an Ajax call to the backend to check on how many questions are answered and if all questions are correct. The color could be updated in the response for the Ajax call.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently, the accordion header color in the certification survey changes color from blue to orange when all answers are completed (independent of whether the answers are correct).
It would be helpful to the user to have the color change to green if all answers are correct.
The text was updated successfully, but these errors were encountered: