Copied to clipboard

Flag this post as spam?

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


  • Rihab 104 posts 388 karma points
    Jul 04, 2018 @ 13:05
    Rihab
    0

    drop down list get value

    hi everyone,

    i'm trying to change the property editor in the design tab at the home page from radio button to dropdown list. and i need to continue using it the same way as the old datatype "radio button" like this

    var colorTheme = Umbraco.GetPreValueAsString(home.ColorTheme);

    can any one help me?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jul 04, 2018 @ 14:04
    Dennis Aaen
    100

    Hi there and welcome to our.

    You should do something like this.

    var colorTheme =  home.GetPropertyValue<string>("colorTheme")
    

    Hope this helps,

    /Dennis

  • 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