We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2136
    • 134 Posts
    thank you, i will try that.
      Sorry - not using ModX anymore 01/01/2007
      • 2136
      • 134 Posts
      nothing so far. i’m already using eform for a contact form, so i’m guessing that’s complicating things. i’m getting the form with the checkbox, but regardless of whether the box is checked or not, i get returned to the empty form again. no email is being sent out. i’m just using the snippet call as you recommended.

      additionally, i can’t get the From or Reply To to be the submitter’s email address. i’m sure i’m missing something here - what does ’&replyto=`fldEmail` refer to? so far i’ve been using the input name but the from is always the same as the To, and reply-to does not appear or change at all.
        Sorry - not using ModX anymore 01/01/2007
        • 30223
        • 1,010 Posts
        Are you using the latest (1.3) eForm version? http://modxcms.com/eForm-1003.html

        Can you post your form and snippet call? I’ll have a look if I can get it to work here.
          • 2136
          • 134 Posts
          i was not using 1.3, and that at least resolved the reply-to issue. here is the code for the checkbox stuff:

          call:
          [!eForm? &formid="shareForm" &to=`[email protected]` &tpl=`shareBirth` &report=`shareReport` &subject=`Birth Story Submission` &replyto=`fldEmail` !]

          template:
          <div id="hello">
          <span style="color:red">[+validationmessage+]</span>
          <form method="post" action="" enctype="multipart/form-data">
          <fieldset id="cfSet">
          <input name="formid" type="hidden" value="ContactForm"/>
          <label for="cfName">Name:
          <input name="name" id="cfName" class="textN" type="text" value="[+name+]" />
          </label>

          <label for="cfEmail">Email:
          <input name="email" id="cfEmail" class="textE" type="text" value="[+email+]" />
          </label>

          <label for="fldTerms">Agree to Terms & Conditions: <input type="checkbox" name="fldTerms" id="fldTerms" value="agreed" eform="Terms &amp; Conditions::1" />

          <label for="cfMessage">Message:
          <textarea name="message" class="contactMessage" id="cfMessage" rows="8" cols="52">[+message+]</textarea>
          </label>

          <input type="submit" name="contact" id="cfContact" class="contactButton" value="Send Message" />
          </fieldset>
          </form>
          </div>
            Sorry - not using ModX anymore 01/01/2007
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Your hidden field "formid" needs to have the same value as the &formid in the snippet call. You don’t need the placeholders in the form fields, instead use the pseudo-attribute eform="...", like this:
            <div id="hello">
            <span style="color:red">[+validationmessage+]</span>
            <form method="post" action="" enctype="multipart/form-data">
            <fieldset id="cfSet">
            <input name="formid" type="hidden" value="shareForm"/>
            <label for="cfName">Name:
            <input name="name" id="cfName" class="textN" type="text" eform="Name::1" />
            </label><br />
            <label for="cfEmail">Email:
            <input name="email" id="cfEmail" class="textE" type="text" eform="Email:email:1" />
            </label><br />
            <label for="fldTerms">Agree to Terms & Conditions: <input type="checkbox" name="fldTerms" id="fldTerms" value="agreed" eform="Terms & Conditions::1" /><br />
            <label for="cfMessage">Message:
            <textarea name="message" class="contactMessage" id="cfMessage" rows="8" cols="52" eform="Message::1"></textarea>
            </label><br />
            <input type="submit" name="contact" id="cfContact" class="contactButton" value="Send Message" />
            </fieldset>
            </form>
            </div>

              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
              • 2136
              • 134 Posts
              thanks for the tips on the form. still no change - no error or validation messages, or emails being sent. just goes back to the empty form.
                Sorry - not using ModX anymore 01/01/2007
                • 16095
                • 35 Posts
                Hi,

                @ arphaus, this might help or not but I had a similar problem with the previous version of eform (with parser) and it worked when I removed the "id" fields from the form:

                <label for="cfName">Name:
                <input name="name" [b]id="cfName"[/b] class="textN" type="text" eform="Name::1" /></label>


                Would be:

                <label for="cfName">Name:
                <input name="name" class="textN" type="text" eform="Name::1" /></label>


                I’m far from being a programmer but it worked for me although I have no clue why…
                  • 2136
                  • 134 Posts
                  thanks - i’m far from being a programmer myself, and i think that’s something i need to rectify. unfortunately, your suggestion didn’t seem to change anything, but i do appreciate the help.
                    Sorry - not using ModX anymore 01/01/2007
                    • 2057
                    • 12 Posts
                    @ arphaus

                    It looks like your form action is blank. I think it needs to be <form method="post" action="[~[*id*]~]">

                    Maybe that will help.
                      • 2136
                      • 134 Posts
                      thanks for pointing that out - still no dice.
                        Sorry - not using ModX anymore 01/01/2007

                      This discussion is closed to further replies. Keep calm and carry on.