Hi there,
Our users would like to add the same form twice to the page. I guess once near the top and again close to the bottom of the page (not here to debate whether this is good or bad).
After doing some testing, I noticed that if I add the same form twice to the page then the following happens:
Scenario 1
If I fill out the top form only and click submit, I get form input validation errors for both forms and no form is sent off. I guess this is because in the 2nd instance of the form, the input fields are empty, so as far as the validator is concerned something is wrong.
Scenario 2
If I fill out the bottom form only and click submit, then the bottom form is sent off properly, but the button on the top form displayes a circle (it is waiting for feedback on form success I guess).
Is there anything I can do to allow:
- the same form to be added mutiple times to the same page, and
- for the validator to validate only the instance that has been clicked
?
Any ideas how to approach this?
What files do I need to look into? (Am new to EPiServer development and did not get very far yet).