A quick and easy way to display a Thank you message at the end of survey for submitting the form.
At the end of last question, insert a page breaker.
After the page breaker, add the Thank you message as a question, and select the type Single line of text. Enter the default value as "Internal".
Go to the survey form and click on Respond to Survey. Click Next and in the Editform url in the browser, append &ToolPaneView=2 to the end of URL.
Add a CEWP to the below of the page and insert the below code, in HTML source or else paste the code in a text file uploaded to sharepoint library and refer to the text file. (referring the text file is preferred)
<script>
// hide the input textbox for the "thank you " message
var x = document.getElementsByTagName("INPUT");
var i=0;
for (i=0; i<x.length; i++)
{
if (x[i].value=="Internal")
{
x[i].style.display="none";
}
}
</script>
Save the page.
Respond to the survey and the user can see the Thank you message in the form.
At the end of last question, insert a page breaker.
After the page breaker, add the Thank you message as a question, and select the type Single line of text. Enter the default value as "Internal".
Go to the survey form and click on Respond to Survey. Click Next and in the Editform url in the browser, append &ToolPaneView=2 to the end of URL.
Add a CEWP to the below of the page and insert the below code, in HTML source or else paste the code in a text file uploaded to sharepoint library and refer to the text file. (referring the text file is preferred)
<script>
// hide the input textbox for the "thank you " message
var x = document.getElementsByTagName("INPUT");
var i=0;
for (i=0; i<x.length; i++)
{
if (x[i].value=="Internal")
{
x[i].style.display="none";
}
}
</script>
Save the page.
Respond to the survey and the user can see the Thank you message in the form.
And then the user sees a thank you message, he thinks "allright, I did it!" and clicks on the "x" icon from the dialog.
ReplyDeleteNow his response is saved as incomplete in the survey, so it won't count in the final results.
Microsoft should start to realise that their survey mechanism sucks. No back button, no way to say thank you to the user without creating risks, etc.