We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30223
    • 1,010 Posts
    Quote from: sottwell at Apr 08, 2007, 04:52 AM

    Thought it defaulted to [(emailsender)]?
    You are right off course,.. silly me.

    Interesting... looking closely at the full headers, one is sent to the [(emailsender)] address, the empty one is sent to the user’s email address (I was using another of my addresses).
    I think the culprit may be $autotext (&automessage). If not used it is set to an empty string and perhaps this is not evaluated as a false in the code. Try changing line 52 in the snippet to:
    'autotext' => isset($automessage)? $automessage:false;

    and see if this helps.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      No, didn’t change anything.

      The only reason I noticed this is because when testing the form I used an email address from another site, that is also accessed automatically by my mail client when getting my mail. So whoever fills out this form is also getting it, but the website owner would probably never realize it.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 30223
        • 1,010 Posts
        Finally figured out what was wrong... see this post for an explanation of my stupidity.

        Attached is a zip file with the corrected eform.inc.php file. (Hope the upload works normally this time.)

        Nope, still having troubles with corrupted uploads... Ah well see the above post for the fix for the time being.

        One more try...
          • 32666
          • 8 Posts
          Good work.

          Yeah that last upload is corrupt. Will try it out with the fix you mentioned.

          Thanks!
            • 18830
            • 161 Posts
            Here is the german language file.
              • 23050
              • 1,842 Posts
              Hi there,

              I run the eForm 1.4.4 with MODx 0.9.6 RC3 and I get an error when validating a form with blank required fields.

              [+validationmessage+] is well displayed but [+ef_wrapper+] not : I don’t get the blank fields in error message.

              Here is a part of the chunk :
              [+validationmessage+][+ef_wrapper+]
              <form method="post" action="[~[*id*]~]">
              <input type="hidden" name="formid" value="form" />
              
              <div class="champ">
              	<label for="form-nom" >Nom<span class="req">* </span> :</label>
              	<input type="text" id="form-nom" name="Nom" size="40" maxlength="255" eform="Nom:string:1" />
              </div>


              and the call :
              [!eForm? &formid=`form` &to=`[email protected]` &from=`[email protected]` &afromname=`bsa.fr` &replyto=`email` &tpl=`Contact` &report=`ContactReport` &thankyou=`ContactThankYou` &subject=`Contact depuis le site` &language=`francais-utf8` &sendAsHtml=`1` &requiredClass=`error-req`!] 


              Did I miss something ? Thanks smiley
                • 4707
                • 73 Posts
                Quote from: Perrine at May 17, 2007, 10:24 AM

                and the call :
                [!eForm? &formid=`form` &to=`[email protected]` &from=`[email protected]` &afromname=`bsa.fr` &replyto=`email` &tpl=`Contact` &report=`ContactReport` &thankyou=`ContactThankYou` &subject=`Contact depuis le site` &sendAsHtml=`1` &requiredClass=`error-req`!] 


                Check if your contact form works in english by removing "&amp;language=`francais-utf8`" from the snippet call. If it does, you’ll need to compare the lang/english.inc.php and lang/francais-utf8.inc.php files and add the missing lines. I had the same problem with a spanish contact form a week ago.
                  • 30223
                  • 1,010 Posts
                  Definitively check your language file. The [+ef_wrapper+] place holder should be placed in the $_lang["ef_validation_message"] language string. If it’s not you need to update the language file!

                  [+ef_wrapper+] has no use in the form template itself.
                    • 23050
                    • 1,842 Posts
                    @TobyL : Ok, it works with [+ef_wrapper+] in language file. Thanks ! (I tell Davidm to add it in the french file wink )

                    @Cassel : I tried to remove the &language but eForm is still displayed in french ! Maybe it uses the MODx manager parameter ?
                      • 4707
                      • 73 Posts
                      Quote from: Perrine at May 18, 2007, 02:45 AM

                      @Cassel : I tried to remove the &language but eForm is still displayed in french ! Maybe it uses the MODx manager parameter ?

                      Possibly maybe. You should use &language=`english` in your eForm call then.