We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12793
    • 293 Posts
    Hi!! I’ve tryed to insert eForm in Revo but I can’t send message....

    I don’t know if in Revo I can use a chunk for the HTML code (form and fields) ... because if I insert all forms fields in chunk I show an empty page .... if I insert all eForm and HTML form in the same page I show the form but I can’t send mail

    Where is it my error?

    Thanks


    <p>

    [[!FormIt?
    &hooks=`email`
    &emailSubject=`Modulo richiesta informazioni`
    &emailTpl=`tplContactForm`
    &emailTo=`[email protected]`
    ]]

    <p>[[+fi.error.error_message]]</p>

    <form action="[[~[[*id]]]]" method="post" class="form">
    <input name="nospam:blank" value="" type="hidden">

    <label for="name">
    Nome:
    <span class="error">[[+fi.error.name]]</span>
    </label>
    <input name="name:required" id="name" value="[[+fi.name]]" type="text">

    <label for="email">
    Indirizzo Mail:
    <span class="error">[[+fi.error.email]]</span>
    </label>
    <input name="email:email:required" id="email" value="[[+fi.email]]" type="text">





    <label for="cfRegarding">Tipologia richiesta:</label>
    <select name="subject" id="cfRegarding" eform="Form Subject::1">
    <option value="General Inquiries">General Inquiries</option>
    <option value="Press">Press or Interview Request</option>
    <option value="Partnering">Partnering Opportunities</option>
    </select>





    <label for="subject">
    Oggetto:
    <span class="error">[[+fi.error.subject]]</span>
    </label>
    <input name="subject:required" id="subject" value="[[+fi.subject]]" type="text">





    <label for="text">
    Messaggio:
    <span class="error">[[+fi.error.text]]</span>
    </label>




    <textarea name="text:required:stripTags" id="text" cols="55" rows="7">[[+fi.text]]</textarea>
    <br class="clear">





    <div class="form-buttons">
    <input value="Invia Messaggio" type="submit">
    </div>
    </form>


      • 22303 MODX Staff
      • 10,725 Posts
      For clarification, this is not about eForm, but FormIt. These are separate add-ons. Please try to read the support thread for the FormIt add-on before submitting questions, and when you do, you can generally use the existing support threads, e.g. http://modxcms.com/forums/index.php/topic,41887.0.html

      It’s not clear from your post what the problem might be, but make sure you turn off caching on the Resource while trying it out (or make your placeholders non-cacheable as well, e.g. [[!+fi.name]], note the !; especially if your form is embedded in the content of the Resource, rather than in a Chunk).