Disable previous button by group?

More
4 years 7 months ago #108505 by jessicar64
jessicar64 created the topic: Disable previous button by group?
Is there a way to disable the previous button for certain groups? Once a respondent makes it past a certain point, I don't want them to be able to go back. I do want to allow them to go back within a cluster of groups. (Essentially, I need meta-groups with no way to go back to a previous meta-group. But I need data from the previous meta-group so I can't make them separate surveys, or?)

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #108516 by jelo
jelo replied the topic: Disable previous button by group?
This can be done via Javascript. Put in on every page (perhaps in the group section text box as html)
to hide the previous button.
<script type="text/javascript" charset="utf-8">		
	$(document).ready(function(){		
		$('#moveprevbtn').hide();
	});
</script>

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey
The following user(s) said Thank You: f_funke

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #173423 by f_funke
f_funke replied the topic: Disable previous button by group?
Just a short update as the last post is more than four years old:
It looks as the ID name of the button has changed from "moveprevbtn" to "ls-button-previous" in the present version (3.14). At least in my installation the following code works better:
<script type="text/javascript" charset="utf-8">
	$(document).ready(function(){
		$('#ls-button-previous').hide();
	});
</script>

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #173459 by vkuzmin
vkuzmin replied the topic: Disable previous button by group?
<style>
#ls-button-previous {
display: none;
}
</style>
The following user(s) said Thank You: f_funke

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!