We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30156
    • 3 Posts
    i face problem when i put this in order form:

    <input type="hidden" name="product" value="[*apparel_tltle*]"/>

    then my report have this:

    </tr><tr><td>Product Name:</td><td>[+product+]</td></tr>

    but when i check email n shopkeeper that report, its show BLANK at Product Name:

    any1 can help me on this... please!!!!
      • 7231
      • 4,205 Posts
      TVs are not available in eForm reports. However, you can use them by making use of eForm events. Check out the eForm documentation (located in the assets/snippets/eform/docs/eform.htm folder) and click on examples and then on eForm Events on the docs menu (on the right).

      I have done this before but dont have it in my head at the moment, but the answer is to use a function tied to an eForm event that will bring the placeholders into the reports.

      Hope this helps get you on the right path.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don&#39;t know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 30156
        • 3 Posts
        haha...thx that...but my skill in php and understanding of the script is limited. any easier way to reach that ar? or any can passing the tv to snippets....
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          For a hidden field you need to add the eform attribute like this:
          <input type="hidden" name="product" value="[*apparel_tltle*]" eform="::0::" />

          Now eform will pay attention to the field.

          You need to have all the validation fields of the eform attribute empty, or else it will compare it with the original value in the form to make sure it’s the same (which of course it’s not since it’s a MODx tag that gets replace with its value) and think that it’s a hacking attempt meddling with the hidden field.
            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
            • 30156
            • 3 Posts
            OMG!!~ i done it....thank you very much! now my report and email also can see it.
            Thank you very much!!
              • 38670
              • 11 Posts
              Hi, I see that this topic was answered, but I can't find anything closed to the problem I have.

              Do anyone know how to include the URL and title from the post in the eForm? I can't use the code you show in the top show this information, the value of the input is empty.

              Thanks!