We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51020
    • 670 Posts
    Hi there,

    I am using Formz (https://modx.com/extras/package/formz) for my web forms. it's good because it stores a copy of every submission in the DB, and also emails the customer and or admin.

    All was fine when only one form.
    Now I have two forms, but I can't seem to edit the 'subject' field - so the 'I need more info' form has the same subject as 'Unsubscribe me ASAP' form! - Not ideal!

    In Formz there is the option to add additional properties - so I have used:

    &emailTpl=`unsubscribeEmailTpl`||&emailSubject=`UNSUBSCRIBE`
    


    The Email TPL is working, but the email subject is being ignored.

    Any ideas what I'm doing wrong?

    Thanks!
    Andy
      • 38783
      • 571 Posts
      Should it be...

      &emailTpl=`unsubscribeEmailTpl`
      &emailSubject=`UNSUBSCRIBE`
      


      leaving out the: ||
        If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

        email: [email protected] | website: https://andytough.com
        • 51020
        • 670 Posts
        Quote from: andytough at May 01, 2018, 12:07 PM
        Should it be...

        &emailTpl=`unsubscribeEmailTpl`
        &emailSubject=`UNSUBSCRIBE`
        


        leaving out the: ||

        Thanks but the docs say to include the ||
        Also I tried it with Just
        &emailSubject=`UNSUBSCRIBE`
        [\code]
        
        but it ignored the subject and used the default. 
        
        
          • 3749
          • 24,544 Posts
          I'm not familiar with Formz, but the || is very odd since you'd expect that MODX would be parsing the tag before Formz gets involved, unless Formz is a plugin that's parsing the page before it's parsed by MODX.
            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