Bug #84142
closedForms interfering when using the same form multiple times on one page
0%
Description
It is currently not possible to use the same form multiple times on a single page without interference of the forms. How to reproduce:
1. Create a form with two pages
2. Create two form plugins on the same page and choose form from step 1 for both plugins
3. Navigate to the second page of the first form
4. Result: both forms are no on page 2
There are more issues with this:
- Values entered in one form are also present in the second form
- Finisher emails are sent two times
The problem is that forms are not treated uniquely by plugin integration, but just by form definition. E.g. form field names just use the form name as prefix: tx_form_formframework[form_name][field_name]
In my opinion it should be possible to use the same form multiple times on the same page but with different finishers set on the corresponding plugin content element. A common use case for instance is a contact form that has different recipients depending on the issue.