We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23299
    • 1,161 Posts
    Tying to get a form working...

    I had a hard time configuring the eForm. I had issues with the first and last name fields and the css...

    I then tried using Bob’s SPForm and got it working. The form sends me email notifications just fine but the Response does not show. After hitting "submit" you are immediately sent to the home page again.

    Any ideas?

    Max

    PS: kudos to Bob. Setting up SPForm is so well documented...
      • 3749
      • 24,544 Posts
      Max,

      Thanks. laugh

      I’m assuming that you’re not using the Revolution version. It sound’s like your "page not found" default is to go to the home page. SPForm just isn’t finding the response page.

      Check the setting for $spfResponseID in the config file. It should be set to the document ID of the response page you created. Also, make sure the response page is published.

      The Revo version installs itself and sets all that stuff automatically.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 23299
        • 1,161 Posts
        Thanks Bob,

        I trashed the response form and made a new one. Its published I also set the id in the config file. Still not getting the resonse form to show. My contact page is not shown in menu by desire as its part of a static menu. The form works and sends just fine though.

        Here is the code that the page produces:
        <div class="spf_cookie_msg">(Cookies must be enabled to use this form.)</div><div id="spf_form"><form action="http://www.sitename.com/spformproc.html" method="post"><p><input type="hidden" name="whoto" value="WebMaster" /><span><input type="hidden" name="orig_referer" value="http://www.sitename.com/spfresponse.html?OrigRef=http%3A%2F%2Fwww.sitename.com%2F&err=1" />
        </span><p><span class="spf_prompt">Your name: </span><span class="spf_normal_input"><input type="text" name="name" size="30" /></span></p><p><span class="spf_prompt">Email address: </span><span class="spf_normal_input"><input type="text" name="email" size="30" /></span></p><p><span class="spf_prompt">Subject: </span><span class="spf_normal_input"><input type="text" name="subject" size="30" /></span></p><p><span class="spf_verify_msg">Verification: </span></p><p><img  src="http://www.sitename.com/assets/snippets/spform/spfveriword.php  "  alt="Verification string image" /></p><p><span class="spf_verify_prompt">Please enter the verification string. </span><span class="spf_normal_input"><input type="text" name="verify" size="10" /></span></p><p><span class="spf_prompt">Please enter your comments below.  Click "Submit" when done.</span></p><p><textarea name="comments" rows="10" cols="50"></textarea></p><p><input type="submit" name="s" value="Submit" /> </p></form></div></p>
        


        Looks like the problem area is:
        span><input type="hidden" name="orig_referer" value="http://www.sitename.com/spfresponse.html?OrigRef=http%3A%2F%2Fwww.sitename.com%2F&err=1" />


        It look like it is balking at the sitename? I checked this as well...

        Max


          • 23299
          • 1,161 Posts
          I tried validating the contact page and it shows 19 errors? I am using a Strict doctype but all my other pages validate.

          Its wierd, when I tried using the eForm snippet I got the form to work and show the response "Thank You" page. I just got snagged with the name boxes. I had trouble just getting one name box to show without seperate boxes for the first and last name.

          I like the SPForm, it seems simpler, easier to style and well documented.

          Max
            • 23299
            • 1,161 Posts
            An update...

            In the end I got eForm working now. Went back in and created simple form elements slowly. I then got the CSS to present the form in the way I wanted. It works well, but I am still testing it.

            I would like to know what my issues was with the SPForm Thank You message not showing was though...

            Max
              • 3749
              • 24,544 Posts
              I’m curious also. I think the "err=1" argument is the problem. I’ve seen it before, but I don’t know where it comes from. It’s not something SPForm does. It might indicate an error in your spformproc document or your template, but if all your other pages validate, the template should be ok.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting