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

    I followed the examples provided with the eForm snippet but my files don’t seem to be attaching. This is the response I’m getting in my inbox where I’m directing the form submit results:

    Name: blah
    Email address: [email protected]
    CV attachment: s
    Comments: blah blah blah

    This is my chunk for the form:

    <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><br />
        <input type="text" name="Name" maxlength="60" eform="Your Name::1" /></p>
    
        <p><label accesskey="e" for="email">Your Email Address:</label><br />
        <input type="text" name="email" size="40" maxlength="40" eform="Your Email Address:email:1" /></p>
        
        <p><label accesskey="c" for="comments">Comments:</label><br />
        <textarea cols="40" rows="10" name="comments" eform="Comments:html:1"></textarea></p>
    
         <p><label for="attachment">CV attachment</label>
            <input class="field" type="file" name="attachment" eform="Attachment:file:0:Only upload of text documents are supported:#LIST pdf,txt,doc " /></p>
         <p>
            Please enter the anti spam code below:<br />
         <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>
    
    <input type="submit" name="frmGo" value="Send CV" />
    </form>


    This is my chunk for the report:

    <p>Below is the contents of a contact form sent from the Brisbane Recruitment website:</p>
    <table>
    <tr><td>Name:</td><td>[+Name+]</td></tr>
    <tr><td>Email address:</td><td>[+email+]</td></tr>
    <tr><td>CV attachment:</td><td>[+attachment+]</td></tr>
    <tr valign="top"><td>Comments:</td><td>[+comments+]</td></tr>
    
    </table>


    Below is the content for the thankyou message:

    <h3>Thank you for your CV submission</h3>
    <p>Brisbane Recruitment will be in contact with you very shortly.</p>
    <p>Below is a copy of your message:</p>
    <table>
    <tr><td><p class="MsoBodyText">Your name:</p></td><td><p class="MsoBodyText">[+Name+]</p></td></tr>
    <tr><td><p class="MsoBodyText">Your email address:</p></td><td><p class="MsoBodyText">[+email+]</p></td></tr>
    <tr><td><p class="MsoBodyText">the file you attached:</p></td><td><p class="MsoBodyText">[+attachment+]</p></td></tr>
    <tr valign="top"><td><p class="MsoBodyText">Your comments:</p></td><td><p class="MsoBodyText">[+comments+]</p></td></tr>
    </table>


    Below is my snippet call:

    <html><body><p>[!eForm? &formid=`feedbackForm` &to=`[email protected]` &tpl=`eFeedbackForm` &report=`eFeedbackReport` &thankyou=`eFeedbackThanks` &vericode=`1` &subject=`Web site feedback`!]</p></body></html>
    


    Any help would be awesome!

    Cheers,

    Sarah
      • 33337
      • 3,975 Posts
      Try adding:
      enctype="multipart/form-data"
      into
      <form method="post" action="[~[*id*]~]">
      . Like:
      <form method="post" enctype="multipart/form-data" action="[~[*id*]~]">
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 16488
        • 8 Posts
        I have the same problem and the above solution does not fix it, any other help would be great. Heres my code:

        [+validationmessage+]
        <form action="[~[*id*]~]" enctype="multipart/form-data" method="post">
            <input type="hidden" name="formid" value="newJob" />
        
        
                <h3>Your personal details</h3>
               <table>
            
                <tr>               
                      <td><label>Title</label></td>
                      <td colspan="3"><select name="title">
        						<option value="Mr">Mr
        						<option value="Mrs">Mrs
        						<option value="Master">Master
        						<option value="Miss">Miss
        					</select> 
        				</td>
                </tr> 
        
               <tr>               
                      <td><label>First Name</label></td>
                      <td> <input class="field" type="text" name="firstname" size="40" eform="First Name:string:1:Your First Name is required" /></td>
                </tr>
        
               <tr>               
                      <td><label>Surname</label></td>
                      <td> <input class="field" type="text" name="surname" size="40" eform="Surname:string:1:Your Surname is required" /></td>
                </tr>
        
               <tr>               
                      <td><label>Residential Address</label></td>
                      <td> <input class="field" type="text" name="address" size="40" eform="Residential Address:string:1:Your Residential Address is required" /></td>
                </tr>
        
                  <tr>               
                      <td><label>Postcode</label></td>
                      <td> <input class="field" type="text" name="postcode" size="40" eform="Postcode:string:1:Your Postcode is required" /></td>
                    </tr>
        
                  <tr>               
                      <td><label>Suburb</label></td>
                      <td> <input class="field" type="text" name="suburb" size="40" eform="Suburb:string:1:Your Suburb is required" /></td>
                </tr>
        
                 <tr>               
                      <td><label>State</label></td>
                      <td colspan="3"><select name="state">
        						<option value="QLD">QLD
        						<option value="NSW">NSW
        						<option value="VIC">VIC
        						<option value="SA">SA
        						<option value="NT">NT
        						<option value="WA">WA
        						<option value="TAS">TAS
        						<option value="ACT">ACT
        					</select>
        				</td>
                </tr>
        
          <tr>               
                      <td><label>Phone Number</label></td>
                      <td> <input class="field" type="text" name="phone" size="40" eform="Phone Number:string:1:Your Phone Number is required" /></td>
                </tr>      
        
          <tr>
                      <td><label>Email</label></td>
                      <td><input class="field" type="text" name="email" size="40"  eform="Email Address:email:1" /></td>
                </tr>
               
                
                <tr>
                       <td><label>Attach your Resume</label></td>
                       <td><input class="field" type="file" name="attachment" eform="Attach your Resume:file:0" /></td>
                </tr>
          
                <tr>
                       <td> </td>
                       <td> <input type="submit" name="frmGo" value="Submit" /> </td>
                </tr>
            </table>
        </form>
        



        <p>Here are the details for <strong>[+subject+]</strong> </p>
        <table>
        	<tr valign="top"><td>Title:</td><td>[+title+]</td></tr>
        	<tr valign="top"><td>First Namel:</td> <td>[+firstname+]</td></tr>
        	<tr valign="top"><td>Surname:</td> <td>[+surname+]</td></tr>
        	<tr valign="top"><td>Residential Address:</td> <td>[+address+]</td></tr>
        	<tr valign="top"><td>Postcode:</td> <td>[+postcode+]</td></tr>
        	<tr valign="top"><td>Suburb:</td> <td>[+suburb+]</td></tr>
                <tr valign="top"><td>State:</td> <td>[+state+]</td></tr>
                <tr valign="top"><td>Phone Number:</td> <td>[+phone+]</td></tr>
                <tr valign="top"><td>Email Address:</td> <td>[+email+]</td></tr>
               	<tr valign="top"><td>Attachment:</td> <td>[+attachment+]</td></tr>
        </table>


        [!eForm? &formid=`newJob` &subject=`Application for new position at Sherriff Electrical Wholesalers` &tpl=`submit_resumeForm` &report=`submit_resumeFormReport` to =`[email protected]`!]