Welcome, Guest
Username: Password: Remember me

TOPIC: click and go

click and go 3 years 4 weeks ago #68104

Hi. I'm a new member and I have a question. How can I implement click and go feature? I'm looking for a feature that allow me to go to the new question after just a click and NOT after click "go ahead". Is it possibile in Limesurvey 1.9.1? Thanks, fabio

PS: I'm referring to a survey with a single-question for each page...
Last Edit: 3 years 4 weeks ago by fabioserricchio.
The administrator has disabled public write access.

Re: click and go 3 years 4 weeks ago #68109

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5426
  • Thank you received: 307
  • Karma: 252
This should be possible if you put a Javascript listener at each radio/checkbox/text element. Once the listener notices an action it can automatically click the submit button.

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.

Re: click and go 3 years 4 weeks ago #68114

Many thanks for you quick reply. Since I'm not so familiar with java and limesurvey as well, I will be very grateful if you could gently explain the procedure. Regards, fabio
Last Edit: 3 years 4 weeks ago by fabioserricchio.
The administrator has disabled public write access.

Re: click and go 3 years 4 weeks ago #68129

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4371
  • Thank you received: 829
  • Karma: 381
Here are some tips on how to use JavaScript - docs.limesurvey.org/tiki-index.php?page=..._etc._in_LimeSurvey_

The code for the JavaScript listeners would vary depending on the question types used but here's an example of a listener that will advance the survey when a radio button in a List (radio) question is clicked.

1) Set up your survey to use JavaScript.

2) Add the following script to the source of the List (radio). Replace "QQ" with the List (radio) question ID.
<script type="text/javascript" charset="utf-8">
 
	$(document).ready(function() {
 
		var qID = QQ;
 
		// Listener on radio buttons - submits form when radio is clicked
		$('#question'+qID+' input.radio').click(function(){
			$('form#limesurvey').submit();
		});
	});
</script>
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: fabioserricchio

Re: click and go 3 years 3 weeks ago #68140

many thanks...but...It is not totally clear to me how modify the code for the answer....:-)
Last Edit: 3 years 3 weeks ago by fabioserricchio.
The administrator has disabled public write access.

Re: click and go 3 years 3 weeks ago #68148

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5426
  • Thank you received: 307
  • Karma: 252
As said above, for "list radio" questions you only have to adjust the question ID, meaning replacing "QQ" with a number like "22", see docs.limesurvey.org/SGQA+identifier&stru...#General_Description

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.

Re: click and go 3 years 3 weeks ago #68160

uhm, many thanks for your patience. Probably I need a steps forward and my previous question was wrong. I intend, where is the "place" where I can insert the java script for answers?
regards
The administrator has disabled public write access.

Re: click and go 3 years 3 weeks ago #68168

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4371
  • Thank you received: 829
  • Karma: 381
JavaScript can be inserted in the source of a question, answer or group description - docs.limesurvey.org/Workarounds%3A+Manip..._etc._in_LimeSurvey_
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: fabioserricchio
Moderators: ITEd
Time to create page: 0.121 seconds
Donation Image