codeforboston / urban-league-heat-pump-accelerator

Urban League Heat Pump Accelerator Project
MIT License
33 stars 22 forks source link

Add Checkboxes/Multiple Select Component for Survey #632

Open mzagaja opened 3 weeks ago

mzagaja commented 3 weeks ago

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"] }