(1,2,3,4,5 will be on top as in matrix type question)
Now if the person select 1 for a mobile he should be shown next question like this:
Why do you like Nokia
Battery Looks weight Prce
nokia
How can I achieve this. One option I was thinking is add a hidded chckbox question whose option(nokia,sammsung,motorola) will be selected if option 1 from 1st question is chosen and then use array filter to show needed option in the next matrix question. Am I on the right path?
Yes, the solution you are thinking of should work fine. There should even be some examples at the forum. Search for "array filter".
Best regards/Beste Grüße,
Dr. Marcel Minke
survey-consulting.com
offlinesurveys.com
Feel free to contact me by email for professional LimeSurvey support!
Well the checkbox is filling correctly but the next question is not showing any option. Currently I have made the checkbox question as visible and I can see that options are ticked correctly.
This checkbox question id is 2.2
In the next matrix type question I am giving Array filter = 2.2(Array exclusion is empty). But next question is shown without any options.
Will it help if I attach survey exported file??
For other peoples- Javascript I used is given below:
I have used the below code but still it does not seems to work. I have given the code in the hidden question
Code:
var sID = 31788;
var gID = 814;
var qHiddenID = 14257;
var answerCode = tmp2[1];
// Fire the <a href='https://docs.limesurvey.org/tiki-index.php?page=Setting%20conditions'>conditions</a> function to hide the corresponding row in Q2
var hiddenInputValue = $('#answer'+sID+'X'+gID+'X'+qHiddenID+answerCode).attr('value');
var hiddenInputName = $('#answer'+sID+'X'+gID+'X'+qHiddenID+answerCode).attr('name');
var hiddenInputType = $('#answer'+sID+'X'+gID+'X'+qHiddenID+answerCode).attr('type');
checkconditions(hiddenInputValue, hiddenInputName, hiddenInputType)
Well I thought my problem is over but its working fine when the question is not hidden. When I hide the question using advanced setting-> always hide this question. The array filter does not seems to work.
I checked the html source and it seems the question itself is not there in the html!!
tpartner wrote: In my opinion this "feature" causes too much confusion and should be dropped.
Maybe, but:
If i want to fill the survey with url and don't want user can access this answer ?
If i want to fill the survey with Session ?
If i want to fill the survey with ajax ?
Just hide the answer item with css aren't good, because user can change it.
Maybe a "activate" or "read-only" option ? ( directly in HTML, can be removed with jquery).
Denis
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.