We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • I have a form which is working fine. The email field is not required. The thing is that the user is not being redirected to the thank you page when they don't fill in their email. When they do fill in their email, they are being redirected.

    In both cases forms are sent (and received).

    What am I missing here?

    Here's the code:

    [[!FormIt?
    &hooks=`spam,email,redirect,FormItAutoResponder`
    &submitVar=`form-inschrijven-submit`
    &emailTpl=`form-inschrijven-sentEmailTpl`
    &emailSubject=`Een inschrijving van [[+contact_voornaam]] [[+contact_name]]`
    &emailTo=`[email protected]`
    &emailFrom=`[email protected]`
    &validate=`
          contact_g:required,
          contact_v:required:minLength=`2`,
          contact_n:required:minLength=`2`,
          contact_b:required:minLength=`10`:maxLength=`10`,
          contact_g:required,
          contact_a:required,
          contact_z:required,
          contact_p:required,
          contact_t:required`
    &redirectTo=`25`
    &fiarTpl=`form-inschrijven-autoResponse`
    &fiarSubject=`Thank you`
    &fiarToField=`email`
    &fiarFrom=`[email protected]`
    &fiarFromName=`xxx`
    ]][[+fi.error.error_message]]
    • Thats an issue with FormItAutoResponder, which could be solved with this patch: https://github.com/Sterc/FormIt/pull/83

      You have to add &fiarRequired=`0` to your snippet call after applying the patch.