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

    I am working with eform and have got the feedback form to work, however, after the "submit" button has been pressed I receive the follow error:

    Document or chunk not found for template id= ’eFeedbackThanks’

    I have the following chunks setup
    Chunk Name: eFeedBackForm

    <p><span style="color:#900;">[+validationmessage+]</span></p>
    <form method="post" action="[~[*id*]~]">
    <input type="hidden" name="formid" value="feedbackForm" />

    <p><label accesskey="n" for="Name">Your Name</label>
    <input type="text" name="Name" maxlength="60" eform="Your Name::1 /></p>

    <p><label accesskey="e" for="email">Your Email Address:</label>
    <input type="text" name="email" size="40" maxlength="40" eform="Your Email Address:email:1" /></p>

    <p><label accesskey="n" for="numberofcars">Number of Cars:</label>
    <input type="text" name="numberofcars" size="10" maxlength="10" eform="Number of Cars" /></p>

    <p><label accesskey="s" for="conditionofcar">Condition of Car/s</label>
    <select name="conditionofcar" eform="Condition of Car/s:html:0" >
    <option value="Good">Good</option>
    <option value="Fair">Fair</option>
    <option value="Poor">Poor</option>
    </select></p>

    <p><label accesskey="c" for="comments">Comments</label>
    <textarea cols="30" rows="5" name="comments" eform="Comments:html:0"></textarea></p>

    <p>
    Please enter the anti spam code below:

    <img src="[+verimageurl+]" alt="verification code" border="1"/>
    </p>
    <p>
    <label accesskey="c" for="vericode">code</label>
    <input type="text" name="vericode" size="20" />
    </p>

    <p><input type="submit" name="submit" value="Send Feedback"></p>
    </form>

    Chunk Name: eFeedbackReport

    <p>This is a response sent by [+Name+] using the feedback form on the website. The details of the message follow below:</p>
    <table>
    <tr valign="top"><td>Name:</td><td>[+Name+]</td></tr>
    <tr valign="top"><td>Email:</td><td>[+email+]</td></tr>
    <tr valign="top"><td>Number of Cars:</td><td>[+Numberofcars+]</td></tr>
    <tr valign="top"><td>Number of Cars:</td><td>[+Conditionofcars+]</td></tr>
    <tr valign="top"><td>Comments:</td><td>[+comments+]</td></tr>
    </table>
    <p>You can use this link to reply: <a href="mailto:[+email+]?subject=RE:[+subject+]">[+email+]</a></p>


    Chunk Name: eFeedBackThanks’ (Locked)

    <h3>Thank you for your feedback</h3>
    <p>Thanks, for contacting Finesse Detailing. We value your business and will get in touch with you within 48 hours.</p>
    <p>Kind Regards,

    Finesse Detailing</p>
    <p>Below is a copy of your message:</p>
    <table>
    <tr><td>Your name:</td><td>[+Name+]</td></tr>
    <tr><td>Your email address</td><td>[+email+]</td></tr>
    <tr><td>Number of Cars</td><td>[+NumberofCars+]</td></tr>

    <tr valign="top"><td>Your comments</td><td>[+comments+]</td></tr>
    </table>

    Now the feedback gets sent to the correct address but the error above keeps appearing, and will not show the "thanks" chunk.

    Any suggestions as to what the problem could be? (I’m a complete novice so please suggest anything regardless of how simple)
      • 10487 MODX Staff
      • 1,535 Posts
      Just a guess but the snippet is looking for a chunk called ’eFormFeedbackThanks’ but your chunk is called ’eFormFeedBackThanks’ - perhaps a case-sensitivity issue?
        Garry Nutting
        Senior Developer
        MODX, LLC

        Email: [email protected]
        Twitter: @garryn
        Web: modx.com