I’m nesting an asset listing in the Default Result Bodycopy of a Decision Tree but the SSJS the asset listing uses seems to be being ignored altogether. For the moment I’m simply trying to get it to print “Hello, world!” on the screen when the Decision Tree shows the content of the Default Result Bodycopy but it isn’t even doing that (see below).
<script type="text/javascript">
console.log("Hello, world!");
if(responses[%ds__qid%]) {
if(responses[%ds__qid%].ans == "_no") {
print("<p>%ds__content%</p>");
} else {
print("Something went wrong");
}
} else {
print("Something went wrong");
}
</script>
Any ideas?