Check out the LimeSurvey source code on GitHub!

How can I hide the submit button under the question index?

More
3 years 4 days ago #105382 by w0928
I'm using the most recent version of LimeSurvey.

Long story short, I used to be able to hide the submit button under the question index using javascript/jquery selectors but now it seems like it doesn't work in the latest version. I've tried changing my selectors but it just isn't working.

The reason I would like to hide the button is because I don't want people to be able to submit unless they have answered all of the questions in the survey.

How can I hide this button now? I've managed to hide the submit button at the bottom of the page next to the navigation buttons. My old code still worked for that.

Please Log in to join the conversation.

More
3 years 4 days ago #105390 by Mazi
How should we help without knowing the code?

Please post a link to an activated sample survey?


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
3 years 4 days ago - 3 years 4 days ago #105391 by w0928
This code used to hide both submit buttons, now it only hides the navigation one. I place it in the description box of each group in my survey.
<script type="text/javascript" charset="utf-8">	
	$(document).ready(function() {
		$('input[type="submit"]').hide();
		$("#movesubmitbtn").hide();
	});	
</script>
Last Edit: 3 years 4 days ago by w0928. Reason: typo

Please Log in to join the conversation.

More
3 years 4 days ago #105395 by Mazi

Mazi wrote: Please post a link to an activated sample survey?


...because the JS code can depend on the template structure.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
3 years 4 days ago #105396 by w0928

Mazi wrote:

Mazi wrote: Please post a link to an activated sample survey?


...because the JS code can depend on the template structure.


I don't have a link to an activated sample survey. The survey is in development. I'm using the basic template if that helps.

Please Log in to join the conversation.

More
3 years 4 days ago #105397 by Mazi
Nope, that doesn't help. Simply create a 1 question survey for testing.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
3 years 4 days ago - 3 years 4 days ago #105400 by w0928
Solved the issue. They changed it from input to button so the code needed to be updated like so:
<script type="text/javascript" charset="utf-8">	
	$(document).ready(function() {
		$('button[value="movesubmit"]').hide();
		$("#movesubmitbtn").hide();
	});	
</script>
Last Edit: 3 years 4 days ago by w0928.
The following user(s) said Thank You: LSCitizen

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form