Skip to content

dropdown values on Answers Summary page #1643

@simonwnuk

Description

@simonwnuk

When using a dropdown with values containing '&' character the selected value is not displayed on the summary page.

Image
Image

the issue is caused when comparing option values and answer in eq-questionnaire-runner/app/views/contexts/summary/question.py (line 282)

  • dropdown answer: Great Britain (England, Scotland & Wales)
  • options[value]: Great Britain (England, Scotland & Wales)

Proposed fix based on handling it in _build_radio_answer:
if answer == escape(option["value"]):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions