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?
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...
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
Josué,
be careful when creating form data using contentService
https://our.umbraco.org/Documentation/Reference/Common-Pitfalls/#using-umbraco-content-items-for-volatile-data
is working on a reply...