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
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.