Skip to content

EVALSYS-1624 Anonymous evaluations: update answers on re-submit and add a confirmation page - #211

Merged
danielmerino merged 2 commits into
masterfrom
EVALSYS-1624
Nov 10, 2026
Merged

danielmerino merged 2 commits into
masterfrom
EVALSYS-1624

Conversation

@danielmerino

Copy link
Copy Markdown
Contributor

https://sakaiproject.atlassian.net/browse/EVALSYS-1624

Problem

If a respondent submits an evaluation, goes back with the browser Back button and submits again, the answers are added to the response instead of replacing the previous ones, so the report shows the same person's answers twice. Anonymous evaluations make this easy to hit: after submitting, the respondent lands on an empty dashboard with no confirmation.

Changes

  • TakeEvalController.buildAnswers: when the form has no existingAnswerId, look up the stored answer by template item + associated type/id before creating a new EvalAnswer. The transient NA flag is reset from the submitted value, so an answer stored as N/A can be changed. The N/A option of free text questions is now saved.
  • Anonymous respondents are redirected to a new confirmation page (/take_eval/submitted, take_eval_submitted.html) with the evaluations.take.message text. Logged-in users still go to the dashboard.
  • The navigation bar (SakaiSkinInterceptor.buildNavItems, nav.html) and the Save/Cancel buttons are hidden for anonymous respondents.
  • Spacing around the evaluation title in take_eval.html.
  • messages_es_ES.properties: updated evaluations.take.message, which still had an old text with placeholders.

🤖 Generated with Claude Code

…dd a confirmation page

- Re-submitting a form without answer ids (e.g. after the browser Back
  button) now updates the stored answers instead of adding new ones.
- Reset the transient NA flag from the submitted value and save the N/A
  option of free text questions.
- Show anonymous respondents a confirmation page after submitting and
  hide the navigation bar and the Save/Cancel buttons for them.
- Add spacing around the evaluation title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	sakai-evaluation-tool/src/java/org/sakaiproject/evaluation/tool/bundle/messages_es_ES.properties
@danielmerino
danielmerino merged commit 1f265b5 into master Nov 10, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants