We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36969
    • 54 Posts
    Here's what is in there BobRay. Sorry it's taken so long for me to get back to this!

    <p>[[!FormIt? &hooks=`email` &emailTpl=`sentEmailTpl` &emailSubject=`Message From AZBAA Contact Form` &emailTo=`[email protected]` ]]</p>
    <form action="[[~[[*7]]]]">
    <h4 class="colr heading">Leave us a message</h4>
    <p><input id="nameBox" class="bar" onfocus="if(this.value == 'Name') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'Name'; }" type="text" name="s" value="Name" /> <input id="bnameBox" class="bar" onfocus="if(this.value == 'Business Name') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'Business Name'; }" type="text" name="s" value="Business Name" /> <input id="EmailBox" class="bar" onfocus="if(this.value == 'Email') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'Email'; }" type="text" name="s" value="Email" /> <input id="PhoneBox" class="bar" onfocus="if(this.value == 'Phone') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'Phone'; }" type="text" name="s" value="Phone" /></p>
    <div class="clear"> </div>
    <p><textarea name="s" rows="5" cols="">Message</textarea></p>
    <div class="clear"> </div>
    <p><a class="buttonone" href="#">Submit</a></p>
    </form>
      • 3749
      • 24,544 Posts
      Is that really your emailTpl chunk? It's not an email tpl chunk. It's what you would want on the form page (except that it should have 'id' (without the quotes) instead of '7').

      If this is a simple contact form, you might consider using SPForm, which will give you a working contact form automatically when you install it.


      ------------------------------------------------------------------------------------------
      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
        • 36969
        • 54 Posts
        Yeah, actually that's not in a chunk I guess, it's on the resource page where it's called out. I have SPForm installed, I just have not played with it. I guess that is what I will go do!
          • 36969
          • 54 Posts
          This might be a question you can answer quickly BobRay. I downloaded and installed the SPForm and now my navigation menu added a second "Contact Us" tab, which only has a very generic contact for with no formatting. Granted, I have not read the manuals for SPForm, but do I go in and apply the formatting via the SPForm?
            • 36969
            • 54 Posts
            Actually, scratch that last comment, but now my issue is that I cannot locate the contact.cfg.php and spfconfig.cfg.php files in my Revolution version 2.2.2-pl.
              • 3749
              • 24,544 Posts
              Make sure The SPForm Contact page uses a Template with a DOCTYPE and valid HTML html, head, and body tags (you should be able to use your main site template) . SPForm injects its CSS with the MODX regClientCss() method and it needs an appropriate template.

              If that's not it, do a "View Source" on the contact form and see where it's looking for its CSS file and make sure the file is there.


              ------------------------------------------------------------------------------------------
              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
                • 36969
                • 54 Posts
                I got that squared away, I deleted my previous "contact us" page and the one generated from SPForm is now the only one in the menu. It is successfully using my contact us template. I just am unable to locate those two files so I can adjust the emails the contact info gets sent to.
                  • 3749
                  • 24,544 Posts
                  What two files? In revolution, just about everything is controlled by the snippet properties.


                  ------------------------------------------------------------------------------------------
                  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
                    • 36969
                    • 54 Posts
                    I was thinking that might be the case, but I have yet to have some time to just devote only to that, hence my concentration is not fully there! I will get to it this weekend! Thanks. smiley
                      • 36969
                      • 54 Posts
                      I've been looking thru the snippet properties and cannot determine at which line to input the email addresses that the contact form will send to. Could you tell me approx where in the SPForm snippet that call is.