Skip to content

Fix default question option numbering when adding new options #3500

@aaronskiba

Description

@aaronskiba

Problem

When adding new question options using the "Add option" button in the question options form, the numbering is strange. Instead of using sequential numbers (1, 2, 3...), the system is using values derived from internal IDs, resulting in large, non-sequential numbers (e.g., 78578).

Image

Technical Details

The issue is in app/javascript/src/orgAdmin/questionOptions/index.js, where the .new_question_option click event is handled. It might be best to modify the code to use the current visible sequence of numbers rather than extracting values from element IDs.

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