Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Denominator is incorrect when radio buttons are not Yes/No type #3766

Open
lachko opened this issue Jan 14, 2025 · 0 comments
Open

Denominator is incorrect when radio buttons are not Yes/No type #3766

lachko opened this issue Jan 14, 2025 · 0 comments
Assignees
Labels

Comments

@lachko
Copy link
Contributor

lachko commented Jan 14, 2025

When we have 2 questions and each has options o 1,2,3 as radio buttons the total score is 6 (3 points for each question max) It looks like currently the denominator is only counting how many questions but not considering value: https://github.com/Tangerine-Community/tangy-form/blob/fa42817fa7cc5022444d3114301590f00011d5ff/tangy-form-item.js#L815
 
For example, for response:
if the user got 3 points for each question their score input (_score is 6) but denominator is wrongly put as 2 resulting in a percentage of 300

Screenshot 2025-01-14 at 4 20 25 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants