Hello
I’m currently developing a SaaS application where organizations can create customizable forms for their communities. I aim to facilitate the dynamic construction of form structures, intending to store both the form configuration and responses as JSON data.
The forms could vary widely in complexity, ranging from simple text fields to elaborate structures including sections, headers, grouped fields, and more.
For instance, an organization might plan a multi-day training camp and need to collect information on food allergies from participants. Some responses might be straightforward, while others could involve multiple allergies with additional information provided for each.
I did not find any plugin doing this and Googling did not help, so I’m wondering whether this is possible.
One option I’ve considered, albeit seemingly cumbersome, involves using nested repeating group in which I would have all possible input types which would be hidden by conditional rules.
Something like
- RG Level1
- RG Level2
-RG Level3
…
Each RG would have all input types with only one visible based on the configuration.
- RG Level2
However, this approach feels heavy-handed and potentially inefficient.
Another consideration is integrating with an external form provider, but this would require users to manage their forms on a separate platform, which might not align with the seamless experience I envision for my application.
If anyone has experience with dynamic form creation or suggestions on how to tackle this challenge more effectively, I’d greatly appreciate your input.
Thank you in advance for any assistance you can provide!