Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

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

How can I hide the submit button under the question index? 9 Monate 2 Tage her #105382

  • w0928
  • w0928s Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 33
  • Dank erhalten: 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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

How can I hide the submit button under the question index? 9 Monate 2 Tage her #105390

  • Mazi
  • Mazis Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 5423
  • Dank erhalten: 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'"
Der Administrator hat öffentliche Schreibrechte deaktiviert.

How can I hide the submit button under the question index? 9 Monate 2 Tage her #105391

  • w0928
  • w0928s Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 33
  • Dank erhalten: 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>
Letzte Änderung: 9 Monate 2 Tage her von w0928. Begründung: typo
Der Administrator hat öffentliche Schreibrechte deaktiviert.

How can I hide the submit button under the question index? 9 Monate 2 Tage her #105395

  • Mazi
  • Mazis Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 5423
  • Dank erhalten: 307
  • Karma: 252
Mazi schrieb:
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'"
Der Administrator hat öffentliche Schreibrechte deaktiviert.

How can I hide the submit button under the question index? 9 Monate 2 Tage her #105396

  • w0928
  • w0928s Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 33
  • Dank erhalten: 3
  • Karma: 1
Mazi schrieb:
Mazi schrieb:
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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

How can I hide the submit button under the question index? 9 Monate 2 Tage her #105397

  • Mazi
  • Mazis Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 5423
  • Dank erhalten: 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'"
Der Administrator hat öffentliche Schreibrechte deaktiviert.

How can I hide the submit button under the question index? 9 Monate 2 Tage her #105400

  • w0928
  • w0928s Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 33
  • Dank erhalten: 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>
Letzte Änderung: 9 Monate 2 Tage her von w0928.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: LSCitizen
Moderatoren: ITEd
Ladezeit der Seite: 0.239 Sekunden
Donation Image