We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27514
    • 5 Posts
    Sorry if this is obvious but...

    I want to call a snippet from a chunk so that my eForm report can be somewhat dymanic. The docs say I can call a snippet form a chunk but when i add [[snippet]] I just get the literal [[snippet]] printed out. Is it really possible to call a snippet from a chunk? What is the syntax?

    Thanks Very Much
      • 33337
      • 3,975 Posts
      Basically you can put the call inside the chunk, but incase of eform, the report chunk will be parsed only for what eform placeholders.

      For this purpose you will need to use the eform events to capture the data and modify it and then give it back to eform for remaining process.

      Please see eform docs for events information, you will find things like OnBeforeMailSent etc.

      Hope this helps.
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 27514
        • 5 Posts
        Using the events was the way to go. Thanks.
          • 7019
          • 135 Posts
          which event have you used to call a snippet for a report of a contactform in php?