We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27449
    • 211 Posts
    Hello,
    Please I need to know if it is possible add a snipped in chunk, because in email report of snipped eForm I want put a link with the id of the page from where the quick form was sent.
    It is possible?
    Thank you
      • 27449
      • 211 Posts
      Please I need send the id of the page in the report of eForm
      How do I do ?
        • 7231
        • 4,205 Posts
        You can do this with a function in an eForm event. I usually add the time, document ID, and IP it was sent from.
        		//set extra value in fields array
        		$fields['formDate']= time();
        		$fields['formDocId']= $modx->documentIdentifier;
        		$fields['formIP']= $_SERVER['REMOTE_ADDR'];


        The code above when used in a function in an eForm event will make the placeholders for [+formDate+] [+formDocId+] and [+formIP+] to be available in the email and thank you chunks. Take a look at the example in the eForm documentation folder (assets/snippets/eform/docs/eform_example_events.htm) to see how to use this.
          [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't know what it is.
          Do you, Mr. Jones? - [bob dylan]