My problem precisely and concisely is that I developed a simple web part to display OOTB Surveys on the page (Which means user can answer and submit the survey through my web part). It works correctly.
BUT when I add the web part two times, then, User will not be able to submit any of them. Simply because when s/he answer the first survey and click Submit-Button, the required field validation will fire on the other web part and requesting to be filled.
Scenario: (I hope those steps give you better understanding of my case)
1- Assume that I add my SurveyViewer web part to display Voting on the right side of the page. Also, I added again my SurveyViewer web part to display Quiz.
2- The user opened the page and s/he only wants to Vote, So s/he selects and clicks Vote.
3- Nothing gets submitted and the Page will display “Please fill the fields of Quiz”.
Question: How can I submit the Voting without being affected by other instances?
Thank you, and I would greatly appreciate your inputs!