Copied to clipboard

Flag this post as spam?

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


  • Jeffrey Weinstein 67 posts 313 karma points
    Jun 18, 2021 @ 20:35
    Jeffrey Weinstein
    0

    Drop down with key + value

    I'm looking for Data Type which can hold Title (label, etc) and Value.

    Is there something our there?

    Cheers

  • Benjamin Carleski 33 posts 294 karma points MVP c-trib
    Jun 18, 2021 @ 20:47
    Benjamin Carleski
    0

    I would check out the Data List Editor in Contentment ( https://github.com/leekelleher/umbraco-contentment ). It allows for lots of different data sources, and various display options as well. There is a dropdown display option, and there is a Enum data source that I've used often. When you use the DataListItem attribute on the enum values, you can set the name/value values that will be used with the dropdown.

  • Jeffrey Weinstein 67 posts 313 karma points
    Jun 18, 2021 @ 20:51
    Jeffrey Weinstein
    0

    that looks really good, do you plan to upgrade this to Umbraco 9?

  • Benjamin Carleski 33 posts 294 karma points MVP c-trib
    Jun 18, 2021 @ 20:53
    Benjamin Carleski
    0

    It isn't my package, but Lee is definitely still involved with Umbraco and so there is a good chance. If you wanted to give it a shot to upgrade it and issue a pull request, I'm sure he'd appreciate the help.

  • Paria Shiri 36 posts 109 karma points
    Apr 13, 2022 @ 14:17
    Paria Shiri
    0

    hi guys, how do u get the value of the dropdown? I checked the publishedmodel for JSON data source and it's still a string, in fact, the title of dropdown not its value.

  • Fernando 13 posts 82 karma points
    Jun 29, 2022 @ 14:46
    Fernando
    0

    Hi, any news here? I have a dropdown and all what I get is a value/value pair, so I cannot pass an id for very item in the dropdown. How can I do that? Thanks,

Please Sign in or register to post replies

Write your reply to:

Draft