Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: multiple choice with comments

multiple choice with comments 1 Jahr 8 Monate her #88393

  • hwm86
  • hwm86s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 6
  • 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 1 Jahr 8 Monate her #88402

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4054
  • Dank erhalten: 740
  • Karma: 341
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 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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: multiple choice with comments 1 Jahr 8 Monate her #88415

  • hwm86
  • hwm86s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 6
  • 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 1 Jahr 8 Monate her #88440

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4054
  • Dank erhalten: 740
  • Karma: 341
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 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.
Letzte Änderung: 1 Jahr 8 Monate her von tpartner.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: multiple choice with comments 1 Jahr 8 Monate her #88461

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6205
  • Dank erhalten: 787
  • Karma: 238
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 1 Jahr 8 Monate her #88479

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4054
  • Dank erhalten: 740
  • Karma: 341
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 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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: multiple choice with comments 1 Jahr 8 Monate her #88483

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6205
  • Dank erhalten: 787
  • Karma: 238
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.
Moderatoren: ITEd
Ladezeit der Seite: 0.171 Sekunden
Donation Image