Silverstripe Version:
4.0.2
Question:
I want send a Title or URL of page, where is a form to the email… something like this: HiddenField::create(‘Url’, $Title),
Is it possible?
$fields = new FieldList(
HiddenField::create('Url', $Title),
TextField::create('Name', 'Name *'),
EmailField::create('Email', 'Email *'),
TextField::create('Phone', 'Phone *'),
);