We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18961 ☆ A M B ☆
    • 237 Posts
    I’ll start by saying, the problem is probably me. I use eForm on several sites. I’ve never dug too deep. Copy the basic forms from the Wiki make a few minor changes and I’m good to go. For this form I need to add a bunch of radial selections and now nothing happens when I hit submit. It just refreshes the page. So, hopefully someone here will be able to point out what I’ve done wrong. Below is the code I’m using. Any help would be greatly appreciated.

    Here’s the call:

    [!eForm? &formid=`SatisfactionSurvey` &to=`[email protected]` &ccsender=`0` &tpl=`Survey` &report=`SurveyReport` &gotoid=`11`  !]



    Here’s the template:

    <p class="error">[+validationmessage+]</p>
     
    <form method="post" action="[~[*id*]~]" id="SatisfactionSurvey">
     
    <input name="formid" type="hidden" value="SatisfactionSurvey" />
     
            <p>Your Name:<br><input name="yourname" id="Name" class="textbox" type="text" eform="Your Name::1:" /></p>
    	
            <p>Phone Number:<br><input name="phone" id="Phone" class="textsmall" type="text" eform="Phone Number::1:" /></p>
    	    
            <p>Your Email Address:<br><input name="email" id="Email" class="textmedium" type="text" eform="Email Address:email:1" /></p>
    	  
            <p>How were you greeted?<br />
               <input type="radio" name="greeted" value="Warmly" eform="How were you greeted::0" />Warmly<br />
               <input type="radio" name="greeted" value="Neutral" />Neutral<br />
               <input type="radio" name="greeted" value="Rudely" />Rudely<br />
               <input type="radio" name="greeted" value="I was not greeted" />I was not greeted</p>
     
            <p>How was your service?<br />
               <input type="radio" name="service" value="Excellent" eform="How was your service::0" />Excellent<br />
               <input type="radio" name="service" value="Good" />Good<br />
               <input type="radio" name="service" value="Poor" />Poor</p>
     
            <p>How did you find our facility?<br />
               <input type="radio" name="facility" value="Excellent" eform="How did you find our facility::0" />Excellent<br />
               <input type="radio" name="facility" value="Good" />Good<br />
               <input type="radio" name="facility" value="Poor" />Poor</p>
     
            <p>Was your service timely?<br />
               <input type="radio" name="timely" value="Yes" eform="Was your service timely::0" />Yes<br />
               <input type="radio" name="timely" value="No" />No (please explain below)</p>
     
            <p>Were all of your concerns addressed?<br />
               <input type="radio" name="concerns" value="Yes" eform="Were all of your concerns addressed::0" />Yes<br />
               <input type="radio" name="concerns" value="No" />No (please explain below)</p>
     
            <p>Would you recommend Easton Auto Body to your friends or family?<br />
               <input type="radio" name="recommend" value="Yes" eform="Would you recommend Easton Auto Body to your friends or family::0" />Yes<br />
               <input type="radio" name="recommend" value="No" />No (please explain below)</p>
    	  
            <p>Tell us about your experience:<br>
    	    <textarea name="tellus" id="tellus" class="formbox" eform="Tell us about your experience:textarea:0"></textarea></p>
     
            <input type="submit" name="send" id="send" class="button" value="Send Us The Survey" />
     
    </form>


    Here’s the Report

    <<p>This is a response sent by <b>[+name+]</b> using the feedback form on this website. The details of the message follow below:</p>
     
    <p>Name: [+yourname+]</p>
    <p>Phone Number: [+phone+]</p>
    <p>Email: [+email+]</p>
    <p>How were you greeted?: [+greeted+]</p>
    <p>How was your service?: [+service+]</p>
    <p>How did you find our facility?: [+facility+]</p>
    <p>Was your service timely?: [+timely+]</p>
    <p>Were all of your concerns addressed?: [+concerns+]</p>
    <p>Would you recommend Easton Auto Body?: [+recommend+]</p>
    <p>Tell us about your experience:<br />[+tellus+]</p>
     
    <p>You can use this link to reply: <a href="mailto:[+email+]?subject=RE: Survey">[+email+]</a></p>



      Michael Smull
      http://www.bigpixelstudio.com
      twitter: @mdsdesign
      • 18913
      • 654 Posts
      If you omit the radio buttons does the form/report process as you would expect?
      Matt
        • 18961 ☆ A M B ☆
        • 237 Posts
        No. It still doesn’t work. So, I broke it somewhere along the line. I tried deleting everything but the name, email and phone number.
          Michael Smull
          http://www.bigpixelstudio.com
          twitter: @mdsdesign
          • 18913
          • 654 Posts
          Well, I tried your form out on a local install (in place of a known working form) and it submitted fine. So I doubt it’s a problem with either that or your response form (which I didn’t test). So it’s something in the eForm call. Is the gotoid a valid resource?
          Matt
            • 26016
            • 561 Posts
            Quote from: mconsidine at Apr 19, 2011, 10:53 AM

            Well, I tried your form out on a local install (in place of a known working form) and it submitted fine. So I doubt it’s a problem with either that or your response form (which I didn’t test). So it’s something in the eForm call. Is the gotoid a valid resource?
            Matt
            Yes, definitely what mconsidine said above. Your form looks good. I used to occasionally goof the formid, but that looks fine here.

            If your gotoid is good, I wonder if you’re maybe lacking a Base Href in your template? My thought was that the "action" part of the form isn’t doing anything if nothing happens when you submit, so maybe a fuller path is needed.

            Short of that, you might want to show a link to look at.

            Cheers
              MODx and Wordpress development
              Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
              • 18961 ☆ A M B ☆
              • 237 Posts
              The form is at: http://www.eastonautobody.com/customersurvey

              I don’t have a base href in the template, but I never do. Also, I have two other eforms on the site: contact and appointment request and both are working fine. That’s why this is so strange. But again, my guess is that I’m just missing something or I deleted something that I need to make it work.
                Michael Smull
                http://www.bigpixelstudio.com
                twitter: @mdsdesign
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                This probably doesn’t have anything to do with it, but... http://validator.w3.org/check?uri=http%3A%2F%2Fwww.eastonautobody.com%2Fcustomersurvey&charset=%28detect+automatically%29&doctype=Inline&group=0
                  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
                  • 18961 ☆ A M B ☆
                  • 237 Posts
                  Yes. I saw that too. But, again, don’t think that one little error is causing the form to break. Thanks for checking though.

                  I feel like it’s going to be some little thing that I spelled wrong or deleted by accident or something just as dumb. I hate when I can’t get these things to work.
                    Michael Smull
                    http://www.bigpixelstudio.com
                    twitter: @mdsdesign
                    • 18913
                    • 654 Posts
                    Those other two forms have the submit field "name" set to "contact" vs "send". Not sure where that value is set as a trigger or where it factors into things. But maybe changing that would make a difference??? I can’t say I recall ever intentionally setting that value ...

                    EDIT : actually they use ’name="contact" id="cfContact"’ for the submit button. The more I think about it, I don’t why that should matter or where it’s set, off the top of my head. Still, if it can eliminate a variable ...
                    Matt
                      • 18961 ☆ A M B ☆
                      • 237 Posts
                      Switched it a gave it a try. Same result.

                      It’s probably something small like that.
                        Michael Smull
                        http://www.bigpixelstudio.com
                        twitter: @mdsdesign