Dynamic form with unknown properties


#1

I’m trying to generate dynamic search form based on hash data fetched from server. In general all of the keys from hash should be label for inputs. Inputs should store hash values. These data are dynamic which means there can be any type of data inside. I was able to generate form using components but I have no idea how to get values from inputs and send it back to server. I was thinking to use https://github.com/piceaTech/ember-rapid-forms but it seems to require model to bind properties from input. Do you know how to achieve what I’m trying to do ?


#2

Thanks to two way data binding, the data you send down to the input components get dynamically updated as they are changed. It should be as easy as downloading data from the server in JSON format, setting them under some property pass data down into components where it’s changed and then upload the data from component up to the server.