I am using Sharepoint 2013 foundation. I have created a survey using the built-in feature of survey of Sharepoint.
After a respondent has completed the survey and pressed the ‘submit’ button, I want to pop up an acknowledgment message window showing message such as ‘Thank you for your participation.’ I am able to achieve this by using javascript to pop up the message when the ‘submit’ button is pressed.
However, in the survey there are a number of mandatory questions. If the respondent has not completed all the mandatory questions and press ‘submit’ button, the acknowledgment message still pops up. Could you please kindly advise how I can check whether all mandatory questions have been completed and survey response successfully submitted in order to determine in my javascript to pop up message or not accordingly?
I cannot check each question one by one because in case my users add one more question, I have to modify my javascript to check the additional question and this solution is not acceptable in my environment.
Thanks a lot for your advice.