Skip to content

Problem with "Other" #443

@danielruss

Description

@danielruss

When the code was changed for in-survey accessibility enhancements (#436) The code to hand the "others" was changed.

originally:

 [...divElement.querySelectorAll("label input,label textarea")].forEach(inputElement => {
      let radioCB = document.getElementById(inputElement.closest('label').htmlFor) 

RadioCB is the input[type="radio"] or input[type="checkbox"] associated with the other input box.

This was changed to

let radioCB = document.getElementById(inputElement.id)
which is the type box.

This is why the results are screwing up when the "other" is selected.

quest/replace2.js

Lines 1036 to 1037 in ec22434

[...divElement.querySelectorAll("label input,label textarea")].forEach(inputElement => {
let radioCB = document.getElementById(inputElement.id)

Metadata

Metadata

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