Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Hiding 'Next' button if consent not given

Hiding 'Next' button if consent not given 1 Jahr 3 Monate her #104780

  • voadicia
  • voadicias Avatar
  • Fresh Lemon
  • Beiträge: 2
  • Karma: 0
Sorry if this question's already been answered, but I couldn't find it through searching.

I don't have a registration page in my survey because I don't need users to register, but I still want them to confirm that they've read the participant information sheet. I have therefore been trying to put yes/no checkboxes on the welcome page before participants are able to enter the survey.

I used the code from the workaround for the registration page, which obviously inserts the checkboxes with no problem (manual.limesurvey.org/Workarounds:_Quest...stering_for_a_survey).

I also found in the forums someone has previously answered how to hide the 'Next' button

<script type="text/javascript" charset="utf-8">

$(document).ready(function() {




which, again, obviously does hide the 'Next' button, the problem is that I don't know how to make the first thing affect the second thing--how do I get the 'Next' button to be hidden only until 'Yes' is checked?
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Hiding 'Next' button if consent not given 1 Jahr 3 Monate her #104784

  • Ben_V
  • Ben_Vs Avatar
  • Platinum Lime
  • Beiträge: 1350
  • Dank erhalten: 319
  • Karma: 89
For a YES/NO question,
try the following code:
<script type="text/javascript">
	$(document).ready(function() {
		// Initially disable the Next/Submit button
		// Listeners on Yes/No radios to toggle the Next/Submit button
                   alert('please agree or leave')

1) Remove or edit the prompted alert if unnecesary...
2) If your html element is not a "button" but an "input", look this previous post


goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Letzte Änderung: 1 Jahr 3 Monate her von Ben_V.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.179 Sekunden
Donation Image