Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

SUJET : Array Drop Down - Multiple Columns

Array Drop Down - Multiple Columns il y a 1 an 9 mois #92763

  • StuartMark0
  • Portrait de StuartMark0
  • Hors ligne
  • Junior Lime
  • Messages : 26
  • Karma: 0
I am trying to add Array drop down question with three columns.

Drop Down Texts

Columns1 - Usage
Labels under drop downs:
•Morning (i.e. before 8:00am)
•During the day (i.e. between 8:00am and 5:00pm)
•Night (i.e. after 5:00pm)

Column2 - Travel Mode
Labels under drop Downs:
•Drive
•Walk
•Other

Columsn3 - Time Taken to Travel
Labels under dorp downs
•Less than 5 minutes
•5 to 10 minutes
•10 to 15 minutes
•15 to 20 minutes
•More than 20 minutes


I need to add these DROP DOWNS for 7 different services in asked in row.

1. Service 1 <Drop down Time of the day><Travel Mode><Time taken to Travel>
2. Service 1 <Drop down Time of the day><Travel Mode><Time taken to Travel>1.
3. Service 1 <Drop down Time of the day><Travel Mode><Time taken to Travel>
so on and so forth

I am able to get the Drop downs but without the TEXT (it shows 1,2,3,...10). I am using Array number question type.


Here's the Work in Progress - jquery script

$(document).ready(function(){

$('#question3152 .answer_cell_1 option[value=1]').text('Morning (i.e. before 8:00am)');
$('#question3152 .answer_cell_1 option[value=2]').text('During the day (i.e. between 8:00am and 5:00pm)');
$('#question3152 .answer_cell_1 option[value=3]').text('Night (i.e. after 5:00pm)');

$('#question3152 .answer_cell_2 option[value=1]').text('Drive');
$('#question3152 .answer_cell_2 option[value=2]').text('Walk');
$('#question3152 .answer_cell_2 option[value=3]').text('Other');

$('#question3152 .answer_cell_3 option[value=1]').text('Less than 5 minutes');
$('#question3152 .answer_cell_3 option[value=2]').text('5 to 10 minutes');
$('#question3152 .answer_cell_3 option[value=3]').text('10 to 15 minutes');
$('#question3152 .answer_cell_3 option[value=4]').text('15 to 20 minutes');
$('#question3152 .answer_cell_3 option[value=5]').text('more than 20 minutes');
$('#question3152 .answer_cell_3 option[value=6]').text('').hide();


Can you help me to get this script working?

Thanks guys

Cheers,
Mark.
L'administrateur a désactivé l'accès en écriture pour le public.

Array Drop Down - Multiple Columns il y a 1 an 9 mois #92767

  • Mazi
  • Portrait de Mazi
  • Hors ligne
  • LimeSurvey Team
  • Messages : 5423
  • Remerciements reçus 307
  • Karma: 252
Hi Mark,

what part of the JS does not work?

Can you post a link to an activated sample survey so we can check the details?

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'"
L'administrateur a désactivé l'accès en écriture pour le public.

Array Drop Down - Multiple Columns il y a 1 an 9 mois #92786

  • StuartMark0
  • Portrait de StuartMark0
  • Hors ligne
  • Junior Lime
  • Messages : 26
  • Karma: 0
Hi Mazi,

It worked, I should have used .answer_cell_001 instead of .answer_cell_1.

Thanks

Cheers,
Mark
L'administrateur a désactivé l'accès en écriture pour le public.

Array Drop Down - Multiple Columns il y a 1 an 9 mois #92787

  • StuartMark0
  • Portrait de StuartMark0
  • Hors ligne
  • Junior Lime
  • Messages : 26
  • Karma: 0
On another note, do you know how to get rid of this splitting table -Image attached

It is an Array question type with 15 subquestions.

Cheers,
Mark
Pièces jointes :
L'administrateur a désactivé l'accès en écriture pour le public.

Array Drop Down - Multiple Columns il y a 1 an 9 mois #92789

  • Mazi
  • Portrait de Mazi
  • Hors ligne
  • LimeSurvey Team
  • Messages : 5423
  • Remerciements reçus 307
  • Karma: 252
At global settings -> presentation you can change the "header repeat" setting so that headers are repeated more or less often, if this is what you were referring to...

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'"
L'administrateur a désactivé l'accès en écriture pour le public.
Modérateurs: ITEd
Temps de génération de la page : 0.134 secondes
Donation Image