Copied to clipboard

Flag this post as spam?

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


  • Nick 23 posts 116 karma points
    Feb 27, 2019 @ 11:41
    Nick
    0

    Get Text value for DropDown field in custom ListView Layout

    Hi,

    I am using Umbraco 7 and following the tutorial at https://24days.in/umbraco-cms/2016/custom-list-view-layouts/ for creating a custom ListView Layout.

    I have a custom DropDown field populated with prevalues and want to display it in the list view, however the listview shows the id stored, not the text prevalue:

    enter image description here

    How can I get the text prevalue in the angular controller. e.g. in Razor you could use something like @umbraco.library.GetPreValueAsString(Model.YourProperty)

    Thanks,

    Nick

  • 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