Copied to clipboard

Flag this post as spam?

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


  • Francesco Pasqui 6 posts 77 karma points
    1 week ago
    Francesco Pasqui
    0

    Hi,

    in Umbraco 7 I used this code to retrive a list of a dropdown's options.

    var datatype = Umbraco.DataTypeService.GetDataTypeDefinitionByName("Data Type Name");
    var preValues = Umbraco.DataTypeService.GetPreValuesByDataTypeId(datatype.Id);
    

    In Umbraco 8 how can I do the same thing?

    Thanks in advance

Please Sign in or register to post replies

Write your reply to:

Draft