Hi,
I'm using the userforms module, but I want to extend it to make a 'survey' page type.
I made a file 'SurveyPage.php' in my code folder with
class SurveyPage extends UserDefinedForm { } and
class SurveyPage_Controller extends UserDefinedForm_Controller { }
I'm adding a few extra bits of data to these pages - such as terms, owener, a logo etc. This all works fine, and I can add the extra into to the CMS.
However, when I 'save and publish' in the CMS, I'm just getting an error message.
I'm also trying to make it new page type, so I can make template 'SurveyPage.ss' which I can use to style all the surveys.
Any help appreciated