Back

(Advice needed) Building a form with multiple values

  • 0
  • Databases
D5
6 Feb, 2024, 19:51

I need in my app a form, something like typeforms, google docs, etc.

Those are 2 ways I found to make it:

  1. Creating dynamically attributes in the database: each field is an attribute in the database
  2. Saving as an array in the database: I would have an array with the forms responses. I think this approach will give me issues while filtering a specific field of the form?

So consequently, I'm not 100% sure of what approach I should take. Maybe the second one?

TL;DR
Title: Building a form with multiple values - Need advice on approach Message: I'm trying to build a form for my app similar to Typeforms or Google Docs. I've come across two possible approaches: 1. Creating dynamically attributes in the database: Each form field would be an attribute in the database. 2. Saving as an array in the database: Storing the form responses in an array. But I'm concerned this approach might cause issues when filtering specific fields. I'm unsure which approach to take. Any advice or recommendations? Thanks! Solution: It depends on your specific requirements and the complexity of your form. If you anticipate
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more