Copied to clipboard

Flag this post as spam?

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


  • Thomas T 66 posts 227 karma points
    Mar 11, 2015 @ 09:12
    Thomas T
    0

    How to get selected prevalue of dropdown list in Umbraco 7 ?

    Hi,

               I created a custom dropdown list with prevalues like 'same tab, new tab'. I selected one value in content section for one content node. Now i need to get that selected value . How can I achieve this ?

  • Dan Lister 416 posts 1974 karma points c-trib
    Mar 11, 2015 @ 09:31
    Dan Lister
    0

    Hi Thomas,

    Where are you wanting to retrieve the selected value?

    If you are wanting to retrieve the selected value on a template, something like the following should do the trick:

    @Model.Content.GetPropertyValue<string>("propertyAlias")
    

    or

    @CurrentPage.PropertyAlias
    

    I hope that helps.

    Thanks, Dan.

  • Thomas T 66 posts 227 karma points
    Mar 11, 2015 @ 10:48
    Thomas T
    1

    Hi Dan,

                    Thanks for the help....Now it is working...

  • Dan Lister 416 posts 1974 karma points c-trib
    Mar 11, 2015 @ 10:51
    Dan Lister
    100

    No problem. Glad I could help Thomas. Don't forget to mark the post as the answer if it answered your question to help other know :)

    Thanks, Dan.

  • 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