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

    I have a custom contact form with 12 fields. eForm is not parsing my form and I don’t quiete know why, any help?



              <div id="form-container">
                <form action="" method="get" name="ANSScontactfrm" lang="fr">
                <input name="formid" type="hidden" value="ContactForm" />
    	      <fieldset style="border: none; margin-bottom: 20px;">              
                    <div class="left">              
                      <label for"ANSSContacttitre"><span class="label">Titre (M. Mme, etc.)</span></label>
                      <input name="ANSSContacttitre" type="text" class="input" id="ANSSContacttitre" tabindex="1" title="Titre (M. Mme, etc.)" />                  
                      <label for="ANSSContactnom"><span class="label">Nom de famille</span></label>
                      <input name="ANSSContactnom" type="text" class="input" id="ANSSContactnom" tabindex="3" title="Nom de famille" />
                      <label for="ANSSContacttelephone"><span class="label">Téléphone</span></label>
                      <input name="ANSSContacttelephone" type="text" class="input" id="ANSSContacttelephone" tabindex="5" title="Téléphone" />
                      <label for="ANSSContactville"><span class="label">Ville </span></label>
                      <input name="ANSSContactville" type="text" class="input" id="ANSSContactville" tabindex="7" title="Ville" />
                      <label for="ANSSContactetat"><span class="label">Etat/Province/Térritoire</span></label>
                      <input name="ANSSContactetat" type="text" class="input" id="ANSSContactetat" tabindex="9" title="Etat/Province/Térritoire" />
                    </div>
                    <div class="right">
                      <label for="ANSSContactprenom"><span class="label">Prénom</span></label>
                      <input name="ANSSContactprenom" type="text" class="input" id="ANSSContactprenom" tabindex="2" title="Prénom" /> 
                      <label for="ANSSContacttxtcourriel"><span class="label">Courriel</span></label>
                      <input name="ANSSContacttxtcourriel" type="text" class="input" id="ANSSContacttxtcourriel" tabindex="4" title="Courriel" value="[+email+]" />
                      <label for="ANSSContactadresse"><span class="label">Adresse</span></label>
                      <input name="ANSSContactadresse" type="text" class="input" id="ANSSContactadresse" tabindex="6" title="Adresse" />                                            
                      <label><span class="label">Pays </span></label>
                      <input name="ANSSContactpays" type="text" class="input" id="ANSSContactpays" tabindex="8" title="Pays" />
                      <label><span class="label">Code Postale/ZIP</span></label>
                      <input name="ANSSContactzip" type="text" class="input" id="ANSSContactzip" tabindex="10" title="Code Postale/ZIP" />
                    </div>
    		      </fieldset> 
    			  <fieldset style="border: none;">
                    <div class="btm">
                      <label><span class="label">Sujet</span></label>
                      <input name="ANSSContacttxtfld6sujet" type="text" class="input" id="txtfld6" tabindex="11" title="Sujet" />
                      <label><span class="label">Question/Message/Commentaires</span></label>
                      <textarea name="ANSSContactfrmmessage" cols="1" rows="1" class="teztarea" tabindex="12" title="Question/Message/Commentaires" lang="fr" id="ANSSContactfrmmessage"></textarea><input name="Soumettre" type="image" id="ANSSContactfrmsmt" tabindex="13" title="Soumettre" lang="fr" src="includes/themes/default/images/btn/btn-soumettre.png" alt="Soumettre" width="144" height="50" border="0" />
                    </div>
                 </fieldset>
               </form>              
              </div>
    
      A MODx Fanatic
      • 1634
      • 51 Posts
      Could you post your snippet call?
        Hmmmmm.

        It&#39;s all a delusion
        • 30585
        • 833 Posts
        Sure hang on, thanks by the way
          A MODx Fanatic
          • 30585
          • 833 Posts
          Here’s the Snippet call


          [!eForm? &formid=`ANSSContactForm` &subject=`[+subject+]` &to=`[(email_sender)]` &ccsender=`1` &tpl=`ANSS_contact form` &report=`ContactFormReport` &invalidClass=`invalidValue` &requiredClass=`requiredValue` &cssStyle=`ContactStyles` &gotoid=`46` !]
            A MODx Fanatic
            • 25663 MODX Staff
            • 12,272 Posts
            This line in your form:
                        <input name="formid" type="hidden" value="ContactForm" />


            Doesn’t match your &formid=`ANSSContactForm` (note the capitalization)

            Which also doesn’t match this line in your form:
                        <form action="" method="get" name="ANSScontactfrm" lang="fr">


            Pick one and only one and make it match.
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 30585
              • 833 Posts
              Thanx alot, I think I overlooked it. I will try it and let you know
                A MODx Fanatic
                • 30585
                • 833 Posts
                Quote from: treigh at Feb 11, 2008, 11:17 PM

                Thanx alot, I think I overlooked it. I will try it and let you know

                It worked just fine. Thanx again
                  A MODx Fanatic