How to support dynamic form with Umbarco, looking for best practice. Thanks.
I am using Umbraco V7.2.8 along with Umbraco Forms to develop a website for client.
In one form, there are some fixed fields, some optional, and, further more, custom fields, i.e., visitors can add customized fields, such as, "Distance to Central Station", the type of the value of these custom fields are string only.
My current solution regarding this is:
regarding the custom fields, I take them as a string in JSON format and keep it in one 'TextField' of the Form.
When customer edits and saves, I need to put all the custom fields into JSON and keeps it into database. When rendering it on browser, I need to process it with Javascript and make it display properly.
I am new to Umbraco, please kindly give a suggestion on how to solve this issue with a better solution.
How to support dynamic form with Umbarco, looking for best practice. Thanks.
I am using Umbraco V7.2.8 along with Umbraco Forms to develop a website for client.
In one form, there are some fixed fields, some optional, and, further more, custom fields, i.e., visitors can add customized fields, such as, "Distance to Central Station", the type of the value of these custom fields are string only.
My current solution regarding this is: regarding the custom fields, I take them as a string in JSON format and keep it in one 'TextField' of the Form. When customer edits and saves, I need to put all the custom fields into JSON and keeps it into database. When rendering it on browser, I need to process it with Javascript and make it display properly.
I am new to Umbraco, please kindly give a suggestion on how to solve this issue with a better solution.
Many thanks.
Your solutions sounds like the right one.
If you let the users create "real" fields on the forms, you'll be facing a mess in notime.
Thank you for your information, Lars.
is working on a reply...