Copied to clipboard

Flag this post as spam?

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


  • dillorscroft 198 posts 192 karma points
    Jan 21, 2010 @ 15:28
    dillorscroft
    0

    Dropdown lists - How to store the text not a numerical key value?

    After 2.5 years using Umbraco I'm embarrassed to ask such a basic question;

    When I create a dropdown list datatype how can I store the text value and not the numerical key.   I don't want to have to do a look-up for the text at a later time I just want to store the value in a nvarchar.   If it makes it simpler I'd like the text and value to both be identical and a string not a number.

    Thanks

    DC

  • Seth Niemuth 275 posts 397 karma points
    Jan 21, 2010 @ 16:28
    Seth Niemuth
    0

    The dropdown list datatype works in that it is a numerical key and text value pair. You would need to create your own datatype if you wanted it to function in a different way (such as no key/value pair but just the value or to have them combined in a string).

  • dillorscroft 198 posts 192 karma points
    Jan 21, 2010 @ 17:02
    dillorscroft
    0

    Thought as much.  :-(

  • 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