We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36719
    • 2 Posts
    I've used eform on several sites and had great success with the snippet. I'm currently using it for a client on a site where they need their clients to send them documents via a file attachment in the form. I've created forms that have done this in the past with no problem, but now I'm getting some strange behaviors in different browsers.

    I'm using eForm 1.4.4.6 in Modx 1.0.2. The form sits in a secure area of the site.

    The form submits without any problem in Firefox and IE, but in Chrome and Safari after you select a document to attach, the browse window pops-up again. If you select a file, or if you hit cancel the form will submit.

    I'm also validating the form with the Jquery Validation plugin. But, even when I remove this script from the header the problem still takes place.

    Here's my snippet call:
    [!eForm? &formid=`granteeSubmissionForm` &to=`[email protected]` &from=`[email protected]` &subject=`new Grantee file upload` &tpl=`granteeSubmissionForm` &report=`granteeSubmissionReport` &automessage=`granteeSubmissionResponse` &gotoid=`62`!]

    Form:
    <div id="VolForm">
    <div id="warning">
    [+validationmessage+]
    </div>
    <form id="granteeSubmissionForm" method="post" action="[~[*id*]~]" enctype="multipart/form-data" >
     
    	<fieldset>
    <label for="name"><h5><span class="required">*</span> Full Name</h5>
    <input id="cfName" class="required formfield" name="name" type="text" eform="Name"/></label>
    
    <label for="org"><h5><span class="required">*</span> Your Organization</h5>
    <input id="cfOrg" class="required formfield" name="org" type="text" eform="Org"/></label>
    
    <label for="email"><h5><span class="required">*</span> Email</h5>
    <input id="cfEmail" class="required formfield email" name="email" type="text" eform="email"/></label>
    
    <label for="subDoc"><h5><span class="required">*</span> A description of the document you are uploading (e.g. "Our quarterly PIM report for the physician investment")</h5>
    <input id="cfMessage" class="text" class="required formfield" name="message" type="text" eform="message:::"/></label>
    
    <label><h5><span class="required">*</span> Attach Your File <span>Must be in PDF, doc, docx, xls, xlsx, html, ppt, pptx or txt format.</h5>
    <input class="field" type="file" name="attachment" eform="attachment::::" /></p>
    <input id="cfContact" class="submit" name="contact" src="img/submit.png" type="image" value="Submit Application" />
    	</fieldset>
    </form>
    </div>
    


    Any thoughts on what this could be?

    [ed. note: rootid last edited this post 15 years, 1 month ago.]
      • 36719
      • 2 Posts
      Anyone?