The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1

THEMA: multiple choice with comments

multiple choice with comments 6 Monate 6 Tage her #88393

  • hwm86
  • hwm86s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 3
  • Karma: 0
hi,
how i can add a question multiple choice but not all with comments??
this link: grab.by/hwXs describe my question..
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: multiple choice with comments 6 Monate 6 Tage her #88402

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2857
  • Dank erhalten: 424
  • Karma: 244
If you are using LimeSurvey 2.0 and just want to hide the last text input, you can set up your survey to use JavaScript and add the following to the source of the question text:
<script type="text/javascript" charset="utf-8">
	$(document).ready(function(){
 
		$('#question'+{self.qid}+' input.text:last').hide();
 
	});
 
</script>
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: multiple choice with comments 6 Monate 6 Tage her #88415

  • hwm86
  • hwm86s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 3
  • Karma: 0
thanks it's working.
how i can choose a one of the list but isn't the last???
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: multiple choice with comments 6 Monate 5 Tage her #88440

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2857
  • Dank erhalten: 424
  • Karma: 244
You can use the position index of the input to hide (note that the indexes start a 0).

So, if you wanted to hide the first input:
$('#question'+{self.qid}+' input.text:eq(0)').hide();

If you wanted to hide the third input:
$('#question'+{self.qid}+' input.text:eq(2)').hide();
More info - api.jquery.com/eq/
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Letzte Änderung: 6 Monate 5 Tage her von tpartner.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: multiple choice with comments 6 Monate 5 Tage her #88461

  • DenisChenu
  • DenisChenus Avatar
  • ONLINE
  • Moderator Lime
  • Beiträge: 4387
  • Dank erhalten: 452
  • Karma: 165
Tony, think it's better to use {QID} than {self.qid} because seem {QID} do the job more easy (for example for array question type) and with less calculation :).

Denis
(and use {SGQ} to)
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: multiple choice with comments 6 Monate 5 Tage her #88479

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2857
  • Dank erhalten: 424
  • Karma: 244
Tony, think it's better to use {QID} than {self.qid} because seem {QID} do the job more easy (for example for array question type) and with less calculation
I stand corrected.
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: multiple choice with comments 6 Monate 5 Tage her #88483

  • DenisChenu
  • DenisChenus Avatar
  • ONLINE
  • Moderator Lime
  • Beiträge: 4387
  • Dank erhalten: 452
  • Karma: 165
tpartner schrieb:
Tony, think it's better to use {QID} than {self.qid} because seem {QID} do the job more easy (for example for array question type) and with less calculation
I stand corrected.
{QID} and {SGQ} are here in 1.91, but found it mast month .....

:(
Der Administrator hat öffentliche Schreibrechte deaktiviert.
  • Seite:
  • 1
Moderatoren: DenisChenu, ITEd
Ladezeit der Seite: 0.305 Sekunden
Donation Image