I want to understand what the meta_data field is used for #111
-
I was trying to understand the JSOn schema and what the fields are necessary for and I have two queries, I am not sure I understand what the meta_data field is trying to do ? is that a object in memory at the time of submission of the form. It will be really helpful if you could point me to a simpler example. Also , I am thinking of extracting a model out of this JSON so it can be represented in the database so I can design a UI for users to create/manage the forms in a WYSIWIG way. Have you given this idea a thought as yet or is there some documentation on how to save this model to a database table ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @sombhattacharyya1983 The meta_data field is optional. It is used when you want to hold extra information for the field that cannot be represented as field value. For example say you have a dropdown spinner showing a list of countries and you want to return the country code, name of the country, population, capital city e.t.c with the form results, you can use the field meta_data to hold this piece of information. When the form is submitted, they will accompany the field value. You can see how this is used on the field named country in the The idea behind neat-form was simply to create a library for generating forms using JSON schema, the rest of the workflow around forms like saving the form data we left it to the users of the library. Neat form however provides you the final data in JSON format, how it saved is up to the users. Besides the JSON format, the developer can work with the form data directly through the On the client side, this is the model used to represent the JSON, NForm. I would recommend using |
Beta Was this translation helpful? Give feedback.
Hi @sombhattacharyya1983 The meta_data field is optional. It is used when you want to hold extra information for the field that cannot be represented as field value. For example say you have a dropdown spinner showing a list of countries and you want to return the country code, name of the country, population, capital city e.t.c with the form results, you can use the field meta_data to hold this piece of information. When the form is submitted, they will accompany the field value. You can see how this is used on the field named country in the
sample_one_form.json
file in the sample app.The idea behind neat-form was simply to create a library for generating forms using JSON schema, the re…