Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

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.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Silverstripe Multiform Not Working


Go to End


800 Views

Avatar
johnpaul852

Community Member, 1 Post

21 April 2015 at 1:06am

Edited: 21/04/2015 3:32pm

I installed and configured SilverStripe on my server. I installed the MultiForm module and followed the instructions in the module documentation.

After following the instructions I still don't see any new page type in my CMS Portal.

I also tried db/build?flush=1 & dev/build?flush=1 but it doesn't make a difference.

I Created the Following files in mysite/code/ directory

SponsorSignupForms.php

class SponsorSignupForms extends MultiForm{
protected static $start_step = 'CompanyDetailsStep';
}
CompanyDetailsStep.php

class CompanyDetailsStep extends MultiFormStep{
public static $next_steps = 'ContactDetailsStep';
function getFields()
{
$fields = singleton('Member')->getFrontendFields();
return $fields;
}
function getValidator()
{
return new Member_Validator('FirstName', 'Surname', 'Email', 'Password');
}
}
ContactDetailsStep.php

class ContactDetailsStep extends MultiFormStep{
public static $is_final_step = true;
function getFields()
{
$fields = singleton('Reference')->getFrontendFields();
return $fields;
}
}
How do I get these custom MultiForms working and appearing as creatable pages?

Stackoverflow Link: http://stackoverflow.com/questions/29747418/silverstripe-multiform-not-working