We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4429
    • 429 Posts
    How do you add custom fields using input handlers to the &notify template?

    [!WebLoginPE? &type=`register` &regType=`pending` &registerTpl=`registerForm` &notifyTpl=`notifyMessage` &regSuccessId=`53` &groups=`Pending Users` &regSuccessPause=`0` &notify=`[email protected]` &customFields=`fullname, gender, username, email, address, city, zip, state, country, phone, fax, business_type, subscriber`  &inputHandler=`Business Type:userBusiness:business_type:select:Distributor(distributor),Manufacturer(manufacturer)` !]



    &notifyTpl:

    Name:  [+form.gender+] [+post.fullname+]
    Business Name: [+post.username+]
    Bussiness Sector: 	[+form.business type+]
    Address: [+post.address+]
    City: [+post.city+]
    County: [+post.state+]
    Post Code: [+post.zip+]
    Country: 	[+form.country+]
    Telephone: [+post.phone+]
    Fax: [+post.fax+]
    E-mail address:  [+uem+]


    for the custom fields i have tried both [+post.fieldname+] and [+form.fieldname+] but neither work in the email. Instead they just show up as code.
      • 4429
      • 429 Posts
      Anyone? Can some some at least say if this is possible at all?
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Try [+view.fieldname+]
          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
          • 4429
          • 429 Posts
          Quote from: sottwell at Dec 11, 2009, 08:48 AM

          Try [+view.fieldname+]

          no unfortunately that doesn’t work either. I just get the placeholder tag returned in my email e.g [+view.mycustomfield+]