• trouble by install FormIt#

  • tvirus Reply #1, 8 months, 2 weeks ago

    Reply
    Dear all,

    I would like to install FormIt on my page. But it does not work with the given formit-call. Here you can see my code :

    [[!FormIt?
    &hooks=`recaptcha,spam,email,redirect`
    &emailTpl=`sentEmailTpl`
    &emailSubject=`Kontakt über das Papaya Kontaktformular`
    &emailTo=`Service@papaya-it.de`
    &validate=`contact_name:required:minLength=`2`,
    contact_email:email:required,
    contact_message:required`
    &redirectTo=`10`
    ]]
    
    
    <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><br />
    <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><br />
    <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><br />
    <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><br />
    <textarea id="contact_message" name="contact_message" cols="70" rows="7" class="required">[[!+fi.contact_message]]</textarea>
    </div>
    
    [[+formit.recaptcha_html]]
    [[!+fi.error.recaptcha]]
    
    
    <div>
    <input name="submit" class="submit" type="submit" value="Submit"/>
    </div>
    </form> 


    If i call my contact page after save this configuration, i only see a white page without the contact form.