We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23344
    • 31 Posts
    Hello, yes I did read back in the forums quite a bit, and I’m still stranded.

    Revo 2.0.7-pl
    Formit 1.5.4 installed through manager

    Its just not doing anything. I did install quickMail and run a check. The check worked. I also already tried reinstalling formit.

    One lingering question: can I still have the form itself in a chunck? Cause I do.

    The lines in the resource:
      [[!FormIt?
       &hooks=`spam,email,redirect`
       &redirectTo=`1`
       &emailTpl=`dirReport`
       &emailTo=`[email protected]`
       &emailSubject=`New Merchant Registraion`
       &validate=`bizname:required,
       firstname:blank`
      ]]
      [[$dirForm]]


    The form chunck (dirForm)
    <p>Does your business accept gold as payment? Submit your information with this form to be listed for free.</p>
    <p class="txSmall">Information will be used solely for this listing and to contact the submitter if verification or clarification is necessarry. All fields marked with a * are required.</p>
    [[!+fi.error.error_message:notempty=`<p>[[!+fi.error.error_message]]</p>`]]
    <form action="[[~[[*id]]]]" method="post" class="bizup">
    <input type="hidden" name="firstname" />
            <p>Business Name:* <span class="error">[[!+fi.error.bizname]]</span><br />
               <input name="bizname" type="text" id="bizname" value="[[!+fi.bizname]]" /></p>
            <p>Industry:*<br />
               <input name="industry" type="text" /></p>
            <p>Service Area:*<br />
               <input name="area" type="text" /></p>
            <p>Contact Person:*<br />
               <input name="person" type="text" /></p>
            <p>Phone:*<br />
               <input name="phone" type="text" /></p>
            <p>Full Address (or base if serving nationally):<br />
               <input name="fulladdy" type="text" /></p>
            <p>E-mail Address:<br />
               <input name="email" type="text" /></p>
            <p>Web Site:<br />
               <input name="http" type="text" /></p>
            <p>Short Message (60 characters or less!):<br />
               <input name="msg" type="text" /></p>
            <p>What you accept:*<br />
               <select name="bullion" value="[[!+fi.bullion]]">
                 <option value="">Select an option...</option>
                 <option value="any" [[!+fi.numbers:FormItIsSelected=`any`]]>Any Bullion</option>
                 <option value="kbgold" [[!+fi.numbers:FormItIsSelected=`kbgold`]]>KB Gold</option>
                 <option value="kbsil" [[!+fi.numbers:FormItIsSelected=`kbsil`]]>KB Silver</option>
                 <option value="kbboth" [[!+fi.numbers:FormItIsSelected=`kbboth`]]>KB Gold & Silver</option>
               </select></p>
            <p><input name="submit" type="button" value="submit" /></p>
          </form>


    I am only doing validation on one field for testing purposes.

    And of course "dirReport" exists like this:
    <p>This is a response sent by [[+person]] using the feedback form on the website. The details of the message follow below:</p>
    <table>
    <tr valign="top"><td>Business Name:</td><td>[[+bizname]]</td></tr>
    <tr valign="top"><td>Email:</td><td>[[+email]]</td></tr>
    <tr valign="top"><td>Accepted Metals:</td><td>[[+bullion]]</td></tr>
    </table>


    But the page is unresponsive. Its like the script is inert.

    Here is the page: www.practicalgold.com/directory

    Any help?
    • Could you try putting the form template under the formit call and remove that line from the call? I don’t think you need to have the template in a chunk which could be part of the issue?
        Patrick | Server Wrangler
        About Me: Website | TweetsMODX Hosting
        • 23344
        • 31 Posts
        Tried it on your suggestion. Seems to not make any difference. Even tried a cache flush.
          • 36493
          • 64 Posts
          check your input type

          unless you are going to have some sort of submit javascript action you need a type=submit
            |
            • 23344
            • 31 Posts
            Hey no, that was it. The submit type needed to be "submit" rather than "button". Darned Dreamweaver.

            One lingering issue, if you leave out the business name, it should throw an error, however I don’t see one. Any ideas on that?
            • Good catch on the button, granted that should work as button is a valid type for the input tag (see: http://w3schools.com/tags/tag_input.asp)

              In regards to the validation error, can you check if there is anything being output in the code? Perhaps something with the CSS is hiding the error message?
                Patrick | Server Wrangler
                About Me: Website | TweetsMODX Hosting