FachschaftMathPhysInfo/ostseee

Implement hasOtherOption on client side

henrixapp opened this issue · 4 comments

In single choice mode there should be the option to have another option. This is indicated by hasOtherOption.

@henrixapp How shall the other option be saved in the answer store? At the moment I can't specify two strings as answer items nor save the other option as the answer, because it doesn't match any of the provided answers.

dispatch(changeAnswer(props.sectionId,question.id,props.concerns,[other]))

doesn't work.

Do only single choice questions have other options or do select questions also need an other option field?

I think only single choice fields should have other option.

alright, excellent, I was just confused because the second question in our example form about the subject has an other option but perhaps it's not necessary to specify which other subject the student is studying.