Community forum for knowledge and support

Updated 11 months ago

Adding Dynamic Form Fields Based On User Settings

At a glance

The community member is looking for a solution to add an additional set of fields to a form based on user settings, such as a button. The comments suggest two potential approaches: custom code using reactive components that can handle callbacks on the client-side, and the htmx library. The community members discuss the merits of these solutions and express interest in exploring them further, but there is no explicitly marked answer.

Useful resources

Hi, I’m looking for a sensible solution that would allow me to add an additional set of fields to the form based on user settings (e.g. button)
i.e. the user has a form where they add their personal details.
He has the option via “button” to add an additional set of fields.
If you had such a task how would you approach it?
custom code, or perhaps a different approach?

R
D
4 comments

Custom code!
check out this : https://shinyobjectlabs.gitbook.io/framework-js/ & https://webflow.com/made-in-webflow/website/reactivity
https://reactivity.webflow.io/?debug=true

you will need some reactive components that can do callbacks on client-side.

this is also good, I am still exploring this stuff..
https://htmx.org/docs/

these are both excellent solutions, I was unaware of the Shiny Framework so thanks for bringing that to my attention.

Yeah really good stuff, I haven't got a chance to put that into some real project, used to deep dive there when some potential client reached out & as always great stuff never sees any light 😅🫠

Add a reply
Sign up and join the conversation on Slack