Welcome, Guest
Username: Password: Remember me

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

How can I hide the submit button under the question index? 9 months 5 days ago #105382

  • w0928
  • w0928's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 33
  • Thank you received: 3
  • Karma: 1
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.
The administrator has disabled public write access.

How can I hide the submit button under the question index? 9 months 5 days ago #105390

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5425
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The administrator has disabled public write access.

How can I hide the submit button under the question index? 9 months 5 days ago #105391

  • w0928
  • w0928's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 33
  • Thank you received: 3
  • Karma: 1
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: 9 months 5 days ago by w0928. Reason: typo
The administrator has disabled public write access.

How can I hide the submit button under the question index? 9 months 5 days ago #105395

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5425
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The administrator has disabled public write access.

How can I hide the submit button under the question index? 9 months 5 days ago #105396

  • w0928
  • w0928's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 33
  • Thank you received: 3
  • Karma: 1
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.
The administrator has disabled public write access.

How can I hide the submit button under the question index? 9 months 5 days ago #105397

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5425
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The administrator has disabled public write access.

How can I hide the submit button under the question index? 9 months 5 days ago #105400

  • w0928
  • w0928's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 33
  • Thank you received: 3
  • Karma: 1
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: 9 months 5 days ago by w0928.
The administrator has disabled public write access.
The following user(s) said Thank You: LSCitizen
Moderators: ITEd
Time to create page: 0.213 seconds
Donation Image