For: 0963
I’m trying to insert document contents as a template parameter for eForm
Here is the eForm Call
[[Include? &file=`eform/snippet.eform.php` &return=`1` &to=`[email protected]` &cc=`[email protected]` &replyto=`email` &formid=`contact` &tpl=`ContactForm` &report=`ContactFormReport` &thankyou=`[!getDoc?docid=`111796`!]` &vericode=`0` &subject=`Web site feedback | [+subject+]`]]
So you can see that I’m trying to do this for the thankyou variable.
The getDoc snippet is simple - it just grabs the content for the specified doc:
<?php
$data = $modx->getPageInfo($docid, $active= 1, $fields= 'content');
return $data['content'];
?>
The eForm will submit the data properly but the thank you text is not the result of the specified document - it’s the default response by eForm.
Any suggestions?
Thanks in advance.