I have a requirement to add CMS managed copy (HTML) to a form (specifically some help text) - is there a way I can access the page's data when calling / rendering the form?
The form is being rendered in the page template as $NominationForm (calling a function in the page controller):
............
$form = new Form($this, 'NominationForm', $fields, $actions, $validator);
$form->setTemplate('Forms/NominationForm');
I need to be able to inject NominationIntructionCopy from the NominatePage class into the form somehow.
private static $db = array(
'TitleCopy' => 'Text',
'BodyCopy' => 'Text',
'NominationsCloseCopy' => 'Text',
'NominationIntructionCopy' => 'HTMLText',
);
Thanks in advance.