As far as I know you can only set the value of a label trough the services. If you want to put example data somewhere you should put it into the description of the property.
If you want to fill in property data with defaults if the user doesn't fill in anything, then you have to hook into the saving event and use the contentservice
How to use label data type in umbraco
Hi
How can i use label data type in umbraco to store default value, is there any post video or article for this.
Thanks
Hey Manish
As far as I know you can only set the value of a label trough the services. If you want to put example data somewhere you should put it into the description of the property.
If you want to fill in property data with defaults if the user doesn't fill in anything, then you have to hook into the saving event and use the contentservice
https://our.umbraco.org/documentation/reference/events/contentservice-events
Read the last section in the article to determine if its a new document or not.
is working on a reply...
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.