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

Add Checkboxes/Multiple Select Component for Survey #632

Open
mzagaja opened this issue Oct 9, 2024 · 1 comment
Open

Add Checkboxes/Multiple Select Component for Survey #632

mzagaja opened this issue Oct 9, 2024 · 1 comment

Comments

@mzagaja
Copy link
Member

mzagaja commented Oct 9, 2024

Christopher Scranton said it would make things a lot easier if we could add a multiple select component.

Question: how do we send it to the backend?

Answer: Would need to send the answers as an array up to the backend.

Would also need to update the frontend to send single String responses as an Array with the string inside it so instead of POSTing:

{ "answer": "I love heat pumps" }

You would need to send:

{ "answer": ["I love heat pumps"] }
@mzagaja mzagaja added this to the Front End MVP milestone Oct 9, 2024
@Andrewy-gh Andrewy-gh self-assigned this Oct 12, 2024
@mikelynch
Copy link
Contributor

We should return:

{ "answers": ["I love heat pumps"] }

rather than answer – on the backend we've added a new array type attribute for these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants