We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19252
    • 9 Posts
    Hello,

    Any help here is VERY appreciated.

    I have used eForm before with great success on Evolution v.1.0.2

    The site I am currently working on is in Evolution v.1.0.4

    I have done everything exactly the same and the form will not submit and validate - it just reloads.

    Here is my code calling the eform snippet:
    [!eForm? &formid=`contactGeneral` &subject=`email from website` &to=`[email protected]` &tpl=`tpl-contact-form` &report=`tpl-contact-emailFeedback` &replyto=`email` &thankyou=`tpl-contact-Thanks` &gotoid=`2` &debug=`1`  &vericode=`1`  !]


    Here is my code calling the form template:
    <p>[+validationmessage+]</p>
    <form method="post" name="contactGeneral" action="[~[*id*]~]">
        <fieldset>
            <div class="inputRow">
                <div class="inputBlock">
                    <label>first name*</label>
                    <input name="fName" type="text" id="fName" eform="first name::1:required field or invalid characters:#REGEX /^[A-za-z0-9' _.-]+$/" />
                </div>
                <div class="inputBlock2">
                    <label>last name*</label>
                    <input name="lName" type="text" id="lName" eform="last name::1:required field or invalid characters:#REGEX /^[A-za-z0-9' _.-]+$/" />
                </div>
                <div class="separator"></div>
            </div>
            
            <div class="inputRow">
                <div class="inputBlock">
                    <label>email*</label>
                    <input name="email" type="text" id="email" eform="email:email:1:required field or invalid characters:" />
                </div>
                <div class="inputBlock2">
                    <label>I am  interested in</label>
                    <select name="interest" id="interest" eform="interest::1:">
                    <option selected value="general information">general information</option>
                    <option value="franchise opportunities">franchise opportunities</option>
                    <option value="real estate">real estate</option>
                    <option value="special events and promotions">special events and promotions</option>
                    <option value="employment">employment</option>
                    <option value="customer feedback">customer feedback</option>
                    <option value="other">other</option>
                    </select>
                </div>
                <div class="separator"></div>
            </div>
            
            <div class="inputRow">
                <div class="inputBlock3">
                    <label>message*</label><br />
                    <textarea name="message"  rows="12" id="message" style="width:650px;"  eform="message::1:required field or invalid characters:#REGEX /^[A-za-z0-9' _.-]+$/"></textarea>
                </div>
                <div class="separator"></div>
            </div>
            <div class="inputRow">
                <div class="inputBlock3">
                    <img src="[+verimageurl+]" border="1" alt="verification code" /><br />
                    <label for="vericode">please enter the anti spam code below</label>
                    <input name="vericode" size="20" type="text" />
    
                    <br />
                    <input name="submit" type="submit" value="send email" />  <input name="reset" type="reset" value="cancel" />
                </div>
                <div class="separator"></div>
            </div>
            
        </fieldset>
    </form>


    Here is my code calling the feedback template:
    <h3>This is a response sent by [+fName+] [+lName+] using the [*pagetitle*] form on [(site_url)]. The details of the message follow below:</h3>
    <table cellpadding="0" cellspacing="8" border="1" width="600">
    <tr valign="top"><td><strong>Name:</strong></td><td>[+fName+] [+lName+]</td></tr>
    <tr valign="top"><td><strong>Email:</strong></td><td>[+email+]</td></tr>
    <tr valign="top"><td><strong>subject:</strong></td><td>[+interest+]</td></tr>
    <tr valign="top"><td><strong>message:</strong></td><td>[+comments+]</td></tr>
    </table>
    <p>You can use this link to reply: <a href="mailto:[+email+]?subject=RE:[+subject+]">[+email+]</a></p>
    


    Here is my code calling the thank-you template:
    <h2>Thank-you [+fName+] for your feedback.</h2>
    <p>A representative from [(site_url)] will be in touch with you shortly.</p>
    


    Any ideas??? undecided

    Thanks,
    Judith

      • 20413
      • 2,877 Posts
      What if you remove &gotoid
      &gotoid (Optional)
      document id to load after sending message. See also &thankyou

      Try this test snippet http://modxcms.com/forums/index.php/topic,40614.0.html
        @hawproductions | http://mrhaw.com/

        Infograph: MODX Advanced Install in 7 steps:
        http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

        Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
        http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower