We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20485
    • 22 Posts
    Hi everyone,
    I’ve a problem with this snippet. I create a call:

    [!eForm? &formid=`ContactForm` &subject=`message` &to=`[email protected]` &ccsender=`1` &language=`it` &tpl=`ExtendedContactForm` &report=`ContactFormReport` &gotoid=`38` !]

    In the ExtendedContactForm I put a field for the attachment:

    <p>
    <label for="attachment">Allega documenti</label>
    <input class="field" type="file" name="attachment" accept="text/plain,application/msword,application/rtf,application/pdf,text/html" eform="Attachment:file:0" />
    </p>


    in the ContactFormReport I put:

    <p>Allegato:[+attachment+]</p>


    but in the mail that i recived there is no attach.

    Someone can help me?

    thanks in advance,

    bye
      • 12379
      • 460 Posts
      Try:

      eform="Attachment:file:0:#LIST pdf,txt,doc"
        Mostly harmless.
        • 33337
        • 3,975 Posts
        you need to add
        enctype="multipart/form-data"
        to the form tag.
          Zaigham R - MODX Professional | Skype | Email | Twitter

          Digging the interwebs for #MODX gems and bringing it to you. modx.link