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 98 karma points
    May 17, 2019 @ 14:59
    Francesco Pasqui
    0

    DropDown Prevalues

    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

  • 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