I have a signature page in the middle of a survey and would like to add a print button so that it was easy to print just that page as the participants work through the survey. I have turned off the XSS filter and the sample Alert js is working. But I cannot seem to get a print button to appear.
I have tried the following code in the question source code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
// Insert the new button
var newButton = '<button type="button" value="Print" onclick="javascript:window.print();">Print</button>';
});
</script>
And a few other versions but they reference a submit button that I do not have. I am then doing a preview question to see if the button is there but to no avail. I am wondering if 1) this is the correct code 2) if the button will only appear when the question is in the group and not just on a question preview page.
Would appreciate any help!