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

MultiPage Forms module Questions.


Go to End


740 Views

Avatar
Schippie

Community Member, 38 Posts

15 March 2013 at 4:13am

Edited: 15/03/2013 4:53am

I had a few questions regarding the multipage forms module. When going through the book "Silverstripe the complete guide to CMS development" (chapter 6.4.3 to 6.4.9).

  • - On page 190 it shows how to restrictFields using:
    $fields = $this->scaffoldFormFields(array(
       'restrictFields'=> array(
          'Firstname',
          'Surname',
          etc.

    Is there any place i can find most/all of the available options that can be restricted here?

  • - Secondly how to unrestrict the password fields. Since they are currently not filled in (available) on the page with the current restrictFields setup. Figured out that i had to simply use password and then with the fieldClasses array add
    'Password' => 'ConfirmedPasswordField'


  • - How would you add confirmedpasswordfield to this? instead of the normal password field. Also is there any way to extend the field classes EmailField for example? to include your own functions / requriements.