Is that something easy to do?
It's not hard. The following example stores the answer to a Yes/No question in a cookie and then only displays the end message if that answer is "Yes".
1)
Set up your survey to use JavaScript.
2) Add the following to the source of a question (or question help) in the last page of the survey. Replace "11111X22X33" with the SGQA of a Yes/No question on a previous page. The script will create a cookie with the answer of the Yes/No.
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
// Set a cookie with the answer of the Yes/No question
document.cookie = 'q1Answer={INSERTANS:11111X22X33}';
})
</script>
3) Create your dynamic end message and wrap it in a span element that can be dynamically hidden and shown. In the source of the end messsage, add something like:
<span class="dynamicMessage">Some end message that is only displayed if the yes/No question is "Yes".</span>
4) Also in the source of the end messsage, add the following script. It will initially hide the end message and then retrieve the cookie. If the cookie value is "Yes" the end message will be displayed.
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
// A function to get the value of a cookie by name
function getCookie (cookieName) {
var results = document.cookie.match ('(^|;) ?' + cookieName + '=([^;]*)(;|$)');
if (results) {
return (unescape (results[2]));
}
else {
return null;
}
}
// Hide the dynamic message
$('.dynamicMessage').hide();
// Retrieve the cookie value
var q1Answer = getCookie ('q1Answer');
// Display the message if the answer is "Yes"
if(q1Answer == 'Yes') {
$('.dynamicMessage').show();
}
});
</script>
So, this should let you display assessment messages with a dynamic end message under them.