UserForms saves the 'referrer' as a hidden text field. Is it possible to get this into the mail?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Not easily in the module. You would have to edit the core UserDefinedForm.php file and add a line around 569 to add the referrer to the list
// new code
$referrer = new SubmittedFormField();
$referrer->Name = "Referrer";
$referrer->Title = "Referrer";
$referrer->Value = urlencode($data['Referrer']);
$referrer->write();
$submittedFields->push($referrer);
// existing code
$emailData = array(
"Sender" => Member::currentUser(),
"Fields" => $submittedFields
);