Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mp_forms

This is a Contao 2.11 extension that finally allows you to create real forms over multiple pages.

After installing the module, you have a new setting in the form definitions where you can define the GET parameter you want the extension to react on. By default, this is "step" so it will generate "step=1", "step=2" etc. in the URL. For whatever reason you might have "step" already on your webpage so you can change the settings there. The cool thing is that mp_forms will prevent all other GET parameters so you can control the module to not interfere with other modules on your webpage.

Moreover, you'll get a new form field called "Page break". Every time you use this form field, the module will insert a page break in the form.

Another cool feature is that if a user manually wants to go to step 3 and did not fill in step 1 or 2, he/she'll be redirected to step 1.

If you want to provide a progress bar indicating the current step in relation to the total steps you can implement this by using the variables "$this->percentage" (e.g. 50%) and "$this->numbers" (e.g. 2 / 5) in the template form_page_switch.

InsertTags

Get current form step: {{mp_forms::<form id>::current}}

Get the number of steps: {{mp_forms::<form id>::total}}

About

Real step separation in the form generator

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors