terminal42/contao-mp_forms

Brackets in select menus delete all input in form and email

Closed this issue · 1 comments

As discussed with Yanick at the CK2017:

I have created a 3 page form with mp_forms.

On the first page I have a select menu containing brackets in the value and description fields:

bildschirmfoto 2017-06-17 um 15 59 36

When I fill in the fields of page 1 and select "Endkunden (B2C)" and go further to page 2, fill in the next fields and for example go then again back to page 1, I notice that all previously inserted fields are now empty. That means that mp_forms can not handle the brackets in the select menu.

Furthermore then no field values of page 1 are submitted to notification center. The submitted email contains all fields of page 2 and 3, but all fields values of page 1 are also empty.

I made another two tests:

  • Choosing "Fachhandel" in the select menu does not lead to the deletion of all fields of page one and the following email via the notification center also contains the value of the select menu.

  • A form containing no mp_forms but a select menu with brackets does Contao handle the form right.

Wow, it took me forever to debug this but finally found it and it's fixed in 3eba21d.