Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Luke 15 posts 85 karma points
    Sep 16, 2015 @ 06:27
    Luke
    0

    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.

  • Lars-Erik Aabech 349 posts 1100 karma points MVP 7x c-trib
    Sep 16, 2015 @ 14:02
    Lars-Erik Aabech
    0

    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.

  • Luke 15 posts 85 karma points
    Sep 16, 2015 @ 23:24
    Luke
    0

    Thank you for your information, Lars.

Please Sign in or register to post replies

Write your reply to:

Draft