Copied to clipboard

Flag this post as spam?

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


  • dominik 711 posts 733 karma points
    Mar 25, 2011 @ 14:22
    dominik
    0

    Set default value for true/false property

    Is there a way to set a property (true/false parameter) default to checked (1)?

    Thanks

  • kows 81 posts 151 karma points c-trib
    Mar 25, 2011 @ 14:35
    kows
    0

    rename your property :p

    we always name our property so our default value should be false..

    like umbracoNaviHide to hide from navigation.

  • dominik 711 posts 733 karma points
    Mar 25, 2011 @ 14:44
    dominik
    0

    I got the property on more than one type so renaming is not a good solution :-)

    I just want to set this default "checked" for one of the types - is there no possibility for it?

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Mar 25, 2011 @ 15:22
    Tom Fulton
    0

    Not with the built in True/False datatype.  But there is a datatype in uComponents called ToggleBox that allows you to set a default value (on/off) that you could use alternatively.

    -Tom

  • dominik 711 posts 733 karma points
    Mar 25, 2011 @ 15:29
    dominik
    0

    Ok so i will try to use this

    Thanks

  • Fergus Davidson 309 posts 588 karma points
    Mar 25, 2011 @ 16:32
    Fergus Davidson
    0

    check out the 'Standard Values' package - it lets you set default text etc, including tickbox states for any document type.

    http://our.umbraco.org/projects/developer-tools/standard-values-in-umbraco

    works with previous/ lastest versions

  • 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.

    Continue discussion

Please Sign in or register to post replies