2 Replies Latest reply on Nov 8, 2013 8:15 PM by tiffany@puppetlabs.com

    Form app - Checkbox problem

    nforest

      We are using the Form app and put some field with checkbox. When the document is publish, the return result for the checkbox is always at "ON" no mather if the checkbox is check or not. Any idea?

        • Re: Form app - Checkbox problem
          tiffany@puppetlabs.com

          We are having the same issue

            • Re: Form app - Checkbox problem
              tiffany@puppetlabs.com

              So I'm just a tinkerer and don't really know what I'm doing for the most part, but for what it's worth, here are the various ways I manipulated the template file that *didn't* work:

                1)

              {

                          "id": "check",

                          "label": "checkbox",

                          "type": "boolean",

                          "values": "",

                          "value": "off",

                          "title": "",

                          "required": false,

                          "patterns": "",

                          "patternError": ""

                      },

               

              2)*wouldn't run in forms

               

              [...]    "values": "yes", "no",

                          "value": "off",    [...]

              3)*wouln't run - but error message taught me that i needed an array instead of a string object

              "values": "yes",

                          "value": "off",

              4) *wouldn't run

              "values": 0,1,

                          "value": "off",

              5)

              "values": [

                              {

                                  "value": "0",

                                  "label": "yes"

                              },

                              {

                                  "value": "1",

                                  "label": "no"

                              }

                          ],

                          "value": "off",

              6)

              "values": [

                              {

                                  "value": "0",

                                  "label": "yes"

                              },

                              {

                                  "value": "1",

                                  "label": "no"

                              }

                          ],

                          "value": "1",

               

              and then I gave up and went back to square one. I suppose I will change all booleans to single select yes/no until this gets fixed.