We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14822
    • 61 Posts
    Hi my Formit not work, in the past month i work in other project and used the formit without problems but now the Formit not work sad , I see in other topics but i don’t found a solution to my issue

    My chunk


    [[!FormIt?
    &hooks=`spam,email,emailSubject,redirect`
    &emailTpl=`ContactoEmail`
    &emailTo=`[email protected]`
    &emailSubject=`Contacto desde el sitio web`
    &redirectTo=`1`
    &validate=`nombre:required,
    ecorreo:email:required,
    mensaje:required:stripTags`
    ]]
    <form name="formcontacto" action="[[~[[*id]]]]" method="post" id="formcontacto">
    <input type="hidden" name="nospam:blank" value="" />
    <h3>Formulario de contacto</h3>
    <label>
    <span>Nombre</span>
    <input type="text" name="nombre:required" id="nombre" value="[[+fi.nombre]]" class="input-text" />
    [[!+fi.error.nombre]]
    </label>
    <label>
    <span>Correo electrónico</span>
    <input type="text" name="ecorreo:email:required" id="ecorreo" value="[[+fi.ecorreo]]" class="input-text" />
    [[!+fi.error.ecorreo]]
    </label>
    <label>
    <span>Mensaje</span>
    <textarea name="mensaje:required:stripTags" id="mensaje" cols="25" rows="7" value="[[+fi.mensaje]]" class="input-msg">[[!+fi.mensaje]]</textarea>
    [[!+fi.error.mensaje]]
    </label>
    <button type="submit" class="input-boton">Enviar</button>
    </form>

    I used Revo 2.0.6pl2 (traditional) and my server is:
    Ubuntu 10.10
    Apache 2.2.16
    PHP 5.3.3

    There appears no error message

    Lately I feel a little frustrated with MODx is a great application that’s for sure, but it is very little documentation for dummies.
    3 months I’ve been using it and do not know if I’m stupid but I could not use the user restrictions on the backend.

    These are the projects I’ve developed:
    www.hogarama.com
    www.nefrouros.net
    www.centrodeconvencionesneiva.com (this have problems with formit)
    comfamiliar.planetanaranja.com (beta version)

    sorry for my english and i hope that any can help me...
      • 26016
      • 561 Posts
      Hola,
      Tengo un idea para Vd. ?Se puede probar? smiley

      I think that "name" value should be a little different here, not the same as in the snippet call.
      <input type="text" name="ecorreo:email:required" id="ecorreo" value="[[+fi.ecorreo]]" class="input-text" />


      After my change:
      <input type="text" name="ecorreo" id="ecorreo" value="[[+fi.ecorreo]]" class="input-text" />


      The same idea would be used in the other 2 fields:
      <input type="text" name="nombre" id="nombre" value="[[+fi.nombre]]" class="input-text" />

      <textarea name="mensaje" id="mensaje" cols="25" rows="7" value="[[+fi.mensaje]]" class="input-msg">[[!+fi.mensaje]]</textarea>


      I’m not certain this will fix it, but it might. Ojala que si.

      I hope that helps.
      Dave
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
        • 14822
        • 61 Posts
        Hi Samba tnx for you reply, sorry for my late reply undecided, unfortunately your solution does not work for me sad

        My new code:


        [[!FormIt?
        &hooks=`spam,email,emailSubject,redirect`
        &emailTpl=`ContactoEmail`
        &emailTo=`[email protected]`
        &emailSubject=`Contacto desde el sitio web`
        &redirectTo=`23`
        &validate=`
        nombre:required,
        ecorreo:email:required,
        mensaje:required:stripTags`
        ]]

        <h2>Formulario de contacto</h2>

        <form name="formcontacto" action="[[~[[*id]]]]" method="post" id="formcontacto">
        <input type="hidden" name="nospam:blank" value="" />
        <label>
        <span>Nombre</span>
        <input type="text" name="nombre" id="nombre" value="[[+fi.nombre]]" class="input-text" />
        [[+fi.error.nombre]]
        </label>
        <label>
        <span>Correo electrónico</span>
        <input type="text" name="ecorreo" id="ecorreo" value="[[+fi.ecorreo]]" class="input-text" />
        [[+fi.error.ecorreo]]
        </label>
        <label>
        <span>Mensaje</span>
        <textarea name="mensaje" id="mensaje" cols="25" rows="7" value="[[+fi.mensaje]]" class="input-msg">[[+fi.mensaje]]</textarea>
        [[+fi.error.mensaje]]
        </label>
        <button type="submit" class="input-boton">Enviar</button>
        </form>

        Now I have the last modx revo (2.0.7pl) and formit (1.5.4 rc1), the website is http://centrodeconvencionesneiva.com/index.php?id=9
          • 14822
          • 61 Posts
          My mistake, I solved the problem, uncheck the cacheable option in the Page Setting in the document where published the form.

          Tnx for the help!!!
            • 26016
            • 561 Posts
            !A la perfeccion!

            De nada.
              MODx and Wordpress development
              Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4