Dinamic array question

Mehr
5 Jahre 2 Wochen her #87735 von Serafim
Serafim erstellte das Thema Dinamic array question
Hi there my question is:

I have one question that asks the user if it works with department A, B, C or D.
I want to, depending on the answer, the second question will appear with the answers of the first question, and asks from 0 to 5, how often he works with that department. Example:

-Question 1 I answer that I work with department A and C (multiple choice).
-Question 2 will appear department A and C (just like a numeric array).

I know that I can do this by adding one question for every case (A, A and B, A and C, etc), but is it possible dynamically?

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Jahre 2 Wochen her - 5 Jahre 2 Wochen her #87748 von DenisChenu
DenisChenu antwortete auf das Thema: Dinamic array question
Hello,

Something like that:
{if(Q1_QA=="Y","dept A","")}
{if((Q1_QA=="Y" and Q1_QB=="Y"),"and dept B","")}
{if((Q1_QA!="Y" and Q1_QB=="Y"),"dept B","")}
 
{if(((Q1_QA=="Y" or Q1_QB=="Y") and Q1_QC=="Y"),"and dept C","")}
{if(((Q1_QA!="Y" and Q1_QB!="Y") and Q1_QC=="Y"),"dept C","")}

Etc (or for the first, and for the seconf line)

Denis
PS: maybe some () error.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Letzte Änderung: 5 Jahre 2 Wochen her von DenisChenu.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Jahre 2 Wochen her #87752 von Serafim
Serafim antwortete auf das Thema: Dinamic array question
Nice, it works. array_filter wasn't doing the job...

One more thing, if it is possible.

How can I put in a moltiple choice question add a numeric array? something like this:

Chose from the departments and rate them?

Department A ( ) | ( )
Department B (X) | (5)
Department C ( ) | ( )

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Jahre 2 Wochen her #87754 von DenisChenu
DenisChenu antwortete auf das Thema: Dinamic array question
Multiple choice with comment ?

OR array_filter a multi numeric question type.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Folgende Benutzer bedankten sich: Serafim

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Jahre 2 Wochen her #87755 von Serafim
Serafim antwortete auf das Thema: Dinamic array question
Multiple choice + numeric (chose from 1 to 5).

Is that even possible in the same question?

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Jahre 2 Wochen her #87778 von DenisChenu
DenisChenu antwortete auf das Thema: Dinamic array question
Not exactly, 2 solution:

LS included :
Use "Multiple choice with comments" with some "Question validation equation" to control if comments are a integer beetween 1 and 5.
Do a javascript workaround to move some answer in DOM ( see : docs.limesurvey.org/Workarounds%3A+Manip...ime+using+Javascript )

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha