Copied to clipboard

Flag this post as spam?

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


  • Josué González 17 posts 110 karma points
    Jan 26, 2018 @ 17:16
    Josué González
    0

    How to save info in documentType on code side?

    Hi everyone...

    I have created a documentType, with some custom properties...

    I have a little form in my website, i wan to save that form data, in the documentType that i have already created...

    I don't want to add a new Property Type from code side to that documentType, i want to save user info that has entered in the form, into the documentType, that should be the model for that form...

    Is that possible? Can someone, share with me how can i do that with c# code?

    Any help? Thanks...

  • Dennis Aaen 4457 posts 17970 karma points admin hq c-trib
    Jan 26, 2018 @ 22:01
    Dennis Aaen
    0

    Hi Josué

    That you need is you have to use the Content service to save the data that your user has entered into your form.

    See this https://our.umbraco.org/documentation/reference/management/services/contentservice

    So every-time your client submit the form you will need to create a new content node in the content tree and save the data

    Hope this helps,

    /Dennis

  • Marcio Goularte 356 posts 1248 karma points
    Jan 29, 2018 @ 12:42
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies