We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36526
    • 46 Posts
    Hi! I'd like to configure Formit but I've some problems....

    I've inserted this HTML

    what other things I've to do?


    [[!FormIt?
    &hooks=`email`
    &emailTpl=`sentEmailTpl`
    &emailSubject=`Message from Learn MODx Revo Website`
    &emailTo=`[email protected]`
    ]]

    <form id="contactForm" class="cmxform" method="post" action="[[~[[*id]]]]">
    <strong>Please use the form below to send us an email:</strong>
    <div>
    <label for="contact_name">Name </label><em>(required, at least 2 characters)</em>

    <input id="contact_name" name="contact_name" size="30" class="required" minlength="2" value="[[!+fi.contact_name]]" />
    </div>
    <div>
    <label for="contact_email">E-Mail </label><em>(required)</em>

    <input id="contact_email" name="contact_email" size="30" class="required email" value="[[!+fi.contact_email]]" />
    </div>
    <div>
    <label for="contact_phone">Phone </label><em>(optional)</em>

    <input id="contact_phone_NA_format" name="contact_phone_NA_format" size="14" class="phone" value="[[!+fi.contact_phone_NA_format]]" maxlength="14" />
    <label for="contact_ext">ext. </label>
    <input id="contact_ext_NA_format" name="contact_ext_NA_format" size="5" class="ext" value="[[!+fi.contact_ext_NA_format]]" maxlength="5" />
    </div>
    <div>
    <label for="contact_message">Your comment </label><em>(required)</em>

    <textarea id="contact_message" name="contact_message" cols="70" rows="7" class="required">[[!+fi.contact_message]]</textarea>
    </div>
    <div>
    here I've inserted submit button
    </div>
    </form>
      • 3749
      • 24,544 Posts
      You need to enclose the code in your posts with code tags so we can see it.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting