fix(#187): Implement 'Other' option for dropdowns, multiple choice & checkboxes#206
Closed
fix(#187): Implement 'Other' option for dropdowns, multiple choice & checkboxes#206
Conversation
installs vite for frontend and liblaries like prettier, tailwind, add…
…checkboxes
Frontend:
- Add 'Allow Other' checkbox in QuestionEditor for dropdown/MC/checkbox types
- Show text input when 'Other' is selected in PublicFormView and FormPreview
- Submit 'Other' answers as { other: "custom value" } structure
- Fix [object Object] display in RawResponsesTable — now shows 'Other: value'
Backend:
- Add canBeOther property to Question schema
- Normalize { other } answers in response.service.ts with metadata.normalizedValue
- Extract .other value in prompt.builder.ts for RAG/analytics
- Robust text content detection in response.processor.ts (handles old responses)
Test data & docs:
- Update generate-fake-responses.ts to produce { other: "..." } test data
- Document Other value handling in architecture_overview.md
Closes #187
rkorszun
previously approved these changes
Feb 25, 2026
Collaborator
rkorszun
left a comment
There was a problem hiding this comment.
Btw some '' vs "" formatiing in some cases is strange but overall is ok
…-option-no-input-for-custom-value-rag-handling
added 2 commits
February 28, 2026 20:36
…m-value-rag-handling
…no-input-for-custom-value-rag-handling
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #187 — When "Other" is enabled for dropdown/multiple choice/checkbox questions, an input field now appears for the respondent to type a custom answer. The answer is submitted as
{ other: "custom value" }and the backend correctly extracts and uses the custom value for RAG analytics.Changes
Frontend
{ other: "..." }[object Object]display bug; now showsOther: custom valueBackend
canBeOther: booleanto Question schema{ other }answers withmetadata.normalizedValue; handles "Other" in analytics grouping.othervalue for RAG/LLM prompts (language-independent)hasTextContentmetadataTest data & docs
{ other: "..." }test data for all question types withcanBeOtherAcceptance Criteria (all met)
{ other: "..." }(not just the label).othervalue for analyticscanBeOtherproperty documentedKnown issue (separate from #187)
The analytics pipeline (BullMQ worker) experiences job stalling under the default lock settings. This is an infrastructure concern tracked separately — the
lockDurationandstalledIntervalneed to be increased for long-running AI analysis jobs. The "Other" value handling itself works correctly end-to-end.