We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    Definitely not. SPForm is a quick and dirty contact form for people with limited programming skills. It's not built for any post processing. You'd have to hack its code to do that. FormIt with one or more postHooks be a much better choice.


    ---------------------------------------------------------------------------------------------------------------
    PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
    MODx info for everyone: http://bobsguides.com/modx.html
      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
      • 17412
      • 270 Posts
      Thanks Bob, robust and decisive! I've check FormIT
        • 3749
        • 24,544 Posts
        You're welcome. I wrote SPForm a long time ago and I'm pretty familiar with it's limitations. wink

        I would have updated SPForm if FormIt were not such a good solution.


        ---------------------------------------------------------------------------------------------------------------
        PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
        MODx info for everyone: http://bobsguides.com/modx.html
          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
          • 36782
          • 109 Posts
          [note: problem solved, see next post. - user error.]

          hi there,
          This is my go-to simple contact form, 'cause it's really excellent.

          Anyway, quick question: the response message - I'd like to change it but I can't seem to find where it's coming from...? @prop set doesn't seem to wrk for setting the Tpl. I ended up changing the language file, but it didn't do anything. The cache has been annihilated, so I know I'm doing something wrong. But the message text isn't in the tpl's so I'm a bit stuck.

          -g [ed. note: unsub777 last edited this post 14 years ago.]
            • 36782
            • 109 Posts
            oops...
            I'll leave the other post as reference.

            I set my @propertyset in the [[spForm]] call, but did not set it in my [[spFormResponse]] call... tongue

            Sorry about the pointless post. Now it's loading my response template.

            Still wound't mind knowing where those placeholders are being set, though...
              • 3749
              • 24,544 Posts
              I believe the placeholders are all set in core/components/spform/model/spform/spformclass.inc.php, but you're free to replace the prompt placeholders in the Tpl chunk with real text or add any text or HTML you like between them (or redesign the whole form). Just don't change the placeholders in the input or textarea lines.


              ------------------------------------------------------------------------------------------
              PLEASE, PLEASE specify the version of MODX you are using.
              MODX info for everyone: http://bobsguides.com/modx.html
                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
                • 36782
                • 109 Posts
                Hi,
                thnx, found them smiley

                i think I've got a good handle on how far i can change things and still keep it functional. And the issue that got me confused in the first place was, I think, maybe a cache thing - my core is outside root, and stuff like that, and some things were still not attached correctly. All is functioning beautifully now.
                  • 3749
                  • 24,544 Posts
                  Glad to hear it. Thanks for reporting back. smiley


                  ------------------------------------------------------------------------------------------
                  PLEASE, PLEASE specify the version of MODX you are using.
                  MODX info for everyone: http://bobsguides.com/modx.html
                    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
                    • 42141
                    • 73 Posts
                    I installed this package and I indeed get a form. But when I want to fill it in and hit submit, I get a blank page. Are there still some things that I need to configure or do before it works?
                      • 3749
                      • 24,544 Posts
                      Add &warnAll=`1` to the SPForm snippet tag and, instead of the blank page, you should see a message telling you why it's not working.

                        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