We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9995
    • 1,613 Posts
    Works:
    <input type="text" name="email:required" class="formfield [[!+fi.error.email:notempty=`error`]]" id="email" value="[[!+fi.email]]" /> <span class="error">[[!+fi.error.email]]</span>


    Don't work:
    <input type="checkbox" name="informatie" id="informatie" value="ja" [[!+fi.informatie:FormItIsChecked=`checked`]] />


    Report:
    [[+informatie]]

    when checked I need to see "ja"
    other fields work
    whats wrong?


    This question has been answered by Jako. See the first response.

      Evolution user, I like the back-end speed and simplicity smiley
    • discuss.answer
      Try:
      <input type="checkbox" name="informatie[]" id="informatie" value="ja" [[!+fi.informatie:FormItIsChecked=`checked`]] />
        • 9995
        • 1,613 Posts
        Thanks works!
          Evolution user, I like the back-end speed and simplicity smiley
          • 9995
          • 1,613 Posts
          Hmm, it doesn't work when the checkbox is not selected.. when it is selected it does shocked

          any idea?
            Evolution user, I like the back-end speed and simplicity smiley
          • You have to be sure that something is submitted in 'informatie'. Otherwise FormIt does not set the placeholder.

            <input type="hidden" name="informatie" value="nothing" />
            <input type="checkbox" name="informatie[]" id="informatie" value="ja" [[!+fi.informatie:FormItIsChecked=`checked`]] />
            


            The hidden input would set "nothing" if the checkbox is not checked. The value is overwritten by the checkbox array if one checkbox is checked (works with multiple checkboxes too).
              • 9995
              • 1,613 Posts
              Thanks, works!
                Evolution user, I like the back-end speed and simplicity smiley
                • 54338
                • 2 Posts
                This is my code in side the costom page for report but i am not doing chunk call in side the getTemplateFile() function. Any solution. Please help me.
                My mail id is [email protected]


                class MycmpWelcomeManagerController extends modExtraManagerController {

                public function process(array $scriptProperties = array()) {}
                public function getPageTitle() {
                return 'My Test CMP';
                }
                public function getTemplateFile() {


                return 'welcome.tpl';
                }
                }
                  • 54338
                  • 2 Posts
                  how will create a report in modx please help me?
                    • 3749
                    • 24,544 Posts
                    The subject of this area is the FormIt extra. It's not clear what your question has to do with FormIt. If it's not about FormIt, you should start a new topic.

                    In any case, we'll need more information about what you're trying to do before we can help you.
                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting