Whoops we both replied at the same time there!
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.
- Previous 10 entries
- 1
- Page 22(current)
The odds... :-) Anyway, I don't know about the getField thing - never had to use them, and it's been a while since I used the UserForms. But when located at the current page controller, at least the query might look something like this:
function ShowForm(){
$get = DataObject::get_one('UserDefinedForm', "ParentID = '{$this->ParentID}' AND Title = 'BrochureForm'");
return new UserDefinedForm_Controller($get);
}
Mate. I could honestly kiss you. haha. That worked! My troubles are solved! (At least until tomorrow)
Thanks!
- Previous 10 entries
- 1
- Page 22(current)