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

More
3 years 9 months ago #105382 by w0928
w0928 created the topic: How can I hide the submit button under the question index?
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 9 months ago #105390 by Mazi
Mazi replied the topic: How can I hide the submit button under the question index?
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 9 months ago - 3 years 9 months ago #105391 by w0928
w0928 replied the topic: How can I hide the submit button under the question index?
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 9 months ago by w0928. Reason: typo

Please Log in to join the conversation.

More
3 years 9 months ago #105395 by Mazi
Mazi replied the topic: How can I hide the submit button under the question index?

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 9 months ago #105396 by w0928
w0928 replied the topic: How can I hide the submit button under the question index?

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 9 months ago #105397 by Mazi
Mazi replied the topic: How can I hide the submit button under the question index?
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 9 months ago - 3 years 9 months ago #105400 by w0928
w0928 replied the topic: How can I hide the submit button under the question index?
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 9 months ago by w0928.
The following user(s) said Thank You: LSCitizen

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!