Copied to clipboard

Flag this post as spam?

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


  • Braydie 148 posts 346 karma points
    Sep 12, 2011 @ 12:11
    Braydie
    0

    How to set CheckBoxList items to be checked by default

    Hi,

    Does anybody know how I can create a checkbox list data type with the items checked by default but can be unchecked and saved in the Umbraco admin site?

    Many thanks,

    Braydie

  • Rich Green 2246 posts 4006 karma points
    Sep 12, 2011 @ 12:47
    Rich Green
    0

    Hey Braydie,

    Something like Hendy's http://ucomponents.codeplex.com/wikipage?title=XPathCheckBoxList&referringTitle=Documentation is great for this.

    Rich

  • Braydie 148 posts 346 karma points
    Sep 12, 2011 @ 13:06
    Braydie
    0

    Hi Rich, thanks for your reply, however the items that I have in the checkboxlist are not nodes so using XPath would not be appropriate here..

  • Hendy Racher 861 posts 3844 karma points MVP 2x admin c-trib
    Sep 14, 2011 @ 22:57
    Hendy Racher
    1

    Hi Braydie,

    What's your data source ? how about an event handler with the Document.New event to automatically set the property value so that they all checked ?

    or use the Standard Values package ?

    HTH,

    Hendy

  • Braydie 148 posts 346 karma points
    Dec 08, 2011 @ 13:29
    Braydie
    0

    Hi Hendy, 

    I ended up using an event handler to do this and it seems to be working okay! Thanks 

  • 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