teamraincoat / agricat

Enrollment application for agricultural insurance policies
0 stars 0 forks source link

Change question2 input type into multiple select list #47

Closed j0x0j closed 2 years ago

j0x0j commented 2 years ago

We need to allow multiple select on loss type question2: https://www.figma.com/file/qiAa8NJWS1avYPbZcMLQ9K/Rancoat-App?node-id=505%3A69

The issue is that we cant save the list of values as an array on the EnrollmentSchema. As you can see here, we have to save the value as a string. Ideally we cast the array with .join(',') and save as a comma separated string.