We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36112
    • 24 Posts
    Could anyone tell me whats wrong with my formit call?

    [[!FormIt?
    &hooks=`email`
    &emailSubject=`Newsletter signup`
    &emailTpl=`newsletterSender`
    &emailTo=`[email protected]`
    ]]
    


    <form name="nyhetsbrev" id="newsletter-subscribe" action="[[~[[*id]]]]" method="post">
    <fieldset>
    <input type="text" class="text" id="subscribe-email" value="Abonner på nyhetsbrev..."
    onfocus="if(this.value=='Abonner på nyhetsbrev...')this.value='';" onblur="if(this.value=='')this.value='Abonner på nyhetsbrev...';"  />
    <input type="submit" class="subscribe-submit-btn" value="Send" />
    </fieldset>      						
    </form>
    


    newsletterSender sends only the email.

    Not quite cracked the FormIt way to create forms yet... Hope someone can help..
      • 1778
      • 659 Posts
      Hi
      Have a look at the rtfm : http://rtfm.modx.com/display/ADDON/FormIt.Tutorials+and+Examples and
      http://rtfm.modx.com/display/ADDON/FormIt.Examples.Simple+Contact+Page and of course http://rtfm.modx.com/display/ADDON/FormIt

      You should then understand that you don't set well the "value=" part of your input field, and the &emailTpl (your newsletterSender) should does nothing but is just a piece of HTML code (the HTML code for the email you send, with eventually some values extracted from your form)

      Hope this helps