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.

All other Modules /

Discuss all other Modules here.

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

MultiPage Forms module Questions.


Reply


323 Views

Avatar
Schippie

Community Member, 37 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.