We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36613
    • 328 Posts
    Hi I saw this wonderful module called formZ, in fact they usually lose a lot of time configuring the contact form.
    But for some reason I need to SEO there is a thank you page after sending the contact. How can I do? Help me?
    If formZ not be able to do this there is another module that does this?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      It is just an interface to FormIt, so you can set the FormIt snippet to have a thankyou page as usual.

      http://rtfm.modx.com/display/ADDON/FormIt

      See the "redirectTo" property and the "redirect" hook.

      http://rtfm.modx.com/display/ADDON/FormIt.Hooks.redirect
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 36613
        • 328 Posts
        I use formIt but i find a fast and easy method for generate a form.
        Because i have 5 user than generate form in the site but don't know modx language.
          • 40568
          • 20 Posts
          Quote from: cristianb88 at Oct 17, 2012, 04:13 AM
          I use formIt but i find a fast and easy method for generate a form.
          Because i have 5 user than generate form in the site but don't know modx language.

          I had the same concerns to redirect rather success message for SEO reasons. check this link for your solution. It worked for me hope it works for you too.

          https://forums.modx.com/thread/80726/formz-redirect

            • 40568
            • 20 Posts
            Quote from: cristianb88 at Oct 17, 2012, 04:13 AM
            I use formIt but i find a fast and easy method for generate a form.
            Because i have 5 user than generate form in the site but don't know modx language.

            I had the same concerns to redirect rather than displaying a success message, for SEO reasons. Check this link for your solution. It worked for me, hope it works for you too.

            https://forums.modx.com/thread/80726/formz-redirect

              • 3749
              • 24,544 Posts
              Quote from: cristianb88 at Oct 17, 2012, 02:33 AM
              Hi I saw this wonderful module called formZ, in fact they usually lose a lot of time configuring the contact form.
              But for some reason I need to SEO there is a thank you page after sending the contact. How can I do? Help me?
              If formZ not be able to do this there is another module that does this?

              You might also look at SPForm if you need a simple Contact form with a built-in redirect to a Thank You page.
                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
                • 40568
                • 20 Posts
                Quote from: BobRay at Mar 31, 2013, 06:15 PM
                Quote from: cristianb88 at Oct 17, 2012, 02:33 AM
                Hi I saw this wonderful module called formZ, in fact they usually lose a lot of time configuring the contact form.
                But for some reason I need to SEO there is a thank you page after sending the contact. How can I do? Help me?
                If formZ not be able to do this there is another module that does this?

                You might also look at SPForm if you need a simple Contact form with a built-in redirect to a Thank You page.

                Hi Bob! Would you happen to know if there is a way I can add id/class to input fields in Formz? I am trying to add time and date picker to couple of fields.
                  • 3749
                  • 24,544 Posts
                  Sorry, no, I've never used FormZ, though they may just go in a Tpl chunk.
                    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
                    • 40568
                    • 20 Posts
                    Quote from: BobRay at Apr 01, 2013, 03:51 PM
                    Sorry, no, I've never used FormZ, though they may just go in a Tpl chunk.

                    True, the main snippet calls on TPL chunk which looks like this:

                    [[!FormIt?
                    	&hooks=`[[+action]], redirect`
                            &redirectTo=`[[*redirectForm]]`
                    	&excludeFields=`submit[[+id]]`
                            &submitVar=`submit[[+id]]`
                    	&formid=`[[+id]]` [[- "Form ID"]]
                    	&store=`1`
                    	&storeTime=`900`
                    	&emailTo=`[[+email:default=``]]`
                    	[[+validation:notempty=`&validate=`[[+validation]]``]]
                    	[[+validationText:notempty=`[[+validationText]]`]]
                    ]]
                    
                    [[!+fi.successMessage]]
                    [[!+fi.validation_error_message]]
                    
                    <form class="form [[+identifier]]" action="" method="post">
                    <img src="images/title-form.png" alt="Get A Quote">
                    	<fieldset>
                    		[[+fields]]
                    	</fieldset>
                    
                    	<div class="actions">
                    		<input type="submit" name="submit[[+id]]" value="[[+action_button:default=`Submit`]]" class="btn primary" />
                    	</div>
                    </form>


                    I am really liking Formz. It makes it very easy for my clients to add/remove fields or options. I got everything working well, just trying to make the User experience better when filling dates and time fields.
                      • 3749
                      • 24,544 Posts
                      The fields placeholder is where the fields are coming from, so whatever sets that placeholder would have to set the class/id. You could also probably add them with JavaScript that executes after the DOM is complete.
                        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