We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1924
    • 119 Posts
    Hi,

    i´ve got to validate a set (or 5 single ones) of checkboxes with eForm 1.41 & modx 0.92, but no way. What´s going wrong, here´s my code:
     <input type="checkbox" value="checked" id="wf_AlleEingabezellen" name="Kontroll-Frage Nr.1"  eform="erste Checkbox::1"/>


    I tried everything i know and what´s written in the docu. Please Help, Alex
      • 30223
      • 1,010 Posts
      Start by removing the spaces and dots in the name of your checkbox! At least make it Kontroll_Frage_nr_1 if you must use such a verbose naming.

      afaik spaces and periods are not allowed in the name attribute.
        • 1924
        • 119 Posts
        @TobyL

        Thanks a lot, now it´s working. grin

        best regards from Hannover/Germany, Alex
          • 1924
          • 119 Posts
          Ok, next question.

          why eForm formats the content of this input-box always wrong like this:

          Input: 05119906565 - Result in E-Mail: 5,119,906,565

          Here the form-code i used:
          <input type="text" id="wf_Telefon" name="Telefon" value="" size="30" eform="Telefon-Nummer:integer:1" class="required" />


          Peace, Alex
          • change your eform line to the following and it should come through fine:

            eform="Telefon-Nummer:text:1"
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me