I would like to add a button to the welcome screen in order to accept or not the free and informed consent (TCLE). Although I did it in the previous version of the software (i.e. LimeSurvey 2), I'm not able to do it using the same code in the new version.
The code I used:
Code:
<script type="text/javascript">
$(document).ready(function() {
var buttonText = '<strong>I do not accept</strong>';
var redirectURL = 'https://www.usp.br';
$('#movenextbtn').after('<button class="button redirect-button ui-button ui-widget ui-state-default ui-corner-all" type="button" style="font-size: 11pt; width: 120px; height: 35px"><span class="ui-button-text" style="padding:0 0.7em;">'+buttonText+'</span></button>');
$('.redirect-button').click(function(event) {
window.location = redirectURL;
});
});
</script>
But you get a Star for the additional effort, not just posting the link to the manual like me, but also including screenshots into the post itself. That caused probably the additional 4 minutes.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.