We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27106
    • 147 Posts
    Posted in desperation: I have a template variable of the input type "check box". It displays just fine, but the value never saves at all - you uncheck it, save, refresh and it’s still checked. A TV with identical settings of the type "text" works just fine.

    Anyone else seen this?
      David Walker
      Principal, Shorewalker DMS
      Phone: 03 8899 7790
      Mobile: 0407 133 020
      • 27106
      • 147 Posts
      OK, I found out why checkbox values aren’t stored. The answer is here: http://modxcms.com/forums/index.php?topic=64775.0

      Essentially, when you uncheck a checkbox and hit "Submit", ExtJS doesn’t send a 0 down the wire; it sends nothing. If your TV checkbox is checked, it stays checked. Evil.

      So the lesson seems to be: never use checkboxes for TVs. Radio buttons for yes and no work just fine. See the documentation here: http://rtfm.modx.com/display/revolution20/Template+Variable+Input+Types#TemplateVariableInputTypes-RadioOptions

      Could someone with power over the documentation drop this into the entries for TVs and Radio Buttons, please, to save the next poor idiot some suffering.
        David Walker
        Principal, Shorewalker DMS
        Phone: 03 8899 7790
        Mobile: 0407 133 020