1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Option On/Off Check Box - Format Parameters

Discussion in 'XenForo Development Discussions' started by AndyB, Oct 16, 2013.

  1. AndyB

    AndyB Well-Known Member

    I've created an Option which is a On/Off Check Box. I would like it to be checked by default. What is the correct Format Parameters?

    Thank you.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    This is how I do it.

    AndyB likes this.
  3. AndyB

    AndyB Well-Known Member

    Thank you, Paul.

    I assume when the add-on is installed the check box will have a checkmark as default.
  4. Jeremy

    Jeremy Well-Known Member

    The only "false" numeric value is 0 -- and is the default for options. 1 and above is "true", but proper standards dictates you only use 0 & 1 for the binary. (The 1+ being true is how the checks for user_id tell you if the user is logged in or logged out)
    AndyB likes this.
  5. AndyB

    AndyB Well-Known Member

    Thank you, Jeremy.
  6. AndyB

    AndyB Well-Known Member

    Verified. Yes the checkbox will be checked.

Share This Page