Copied to clipboard

Flag this post as spam?

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


  • [email protected] 378 posts 1915 karma points MVP 4x c-trib
    Jan 25, 2013 @ 11:16
    jeffrey@umarketingsuite.com
    0

    getProperty("") on a checkboxlist returns the values instead of the IDs

    Hi,

    I'm using a checkbox list in Umbraco (the built-in datatype) and according to the documentation the checkboxlists

    "Displays a list of preset values as a list of checkbox controls. The preset values are modified in the developer section under "data types" / checkbox list where new items can be added. The value saved is a comma separated string of prevalue IDs"

    But if I do this

    Node nTest = Node.GetCurrent();
    String s = nTest.GetProperty("gebied").Value;

    The string is comma seperated string of the values instead of the IDs. I'm using Umbraco 4.11.1.

    The database has stored the commaseperated IDs, but somehow .GetProperty("").Value turns into the values.

    Hope anyone has an answer,


    Jeffrey

  • 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