Expression manager building arrays

More
4 years 10 months ago #88159 by jelo
jelo created the topic: Expression manager building arrays
I am trying to get update in terms of the EM featureset.

Is there already a functionality to put the answers e.g. of an multichoice question into an array and filter certain items to create a new array for further questions (e.g. choose from the left items one).

I was trying to figure out, if this can be done without javascript or if this might be a feature request.

Please Log in to join the conversation.

More
4 years 10 months ago #88171 by DenisChenu
DenisChenu replied the topic: Expression manager building arrays
Hello,

Did you look at array_filter or array_filter_exclusion advanced settings ?
Not sure is what you want, but ?

Denis

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 .

Please Log in to join the conversation.

More
4 years 10 months ago #88217 by jelo
jelo replied the topic: Expression manager building arrays
Thanks for your time.
Yes, I know the filter for arrays.

I try to make an example:

Q1: Multiple choice "Choose items"
Q2: Multiple choice Arrayfilter on Q1: "Choose one of items"

Equation: If answer Q2 is on a list of three predefined items choose a random item from Q2 exclusive the three items.

Please Log in to join the conversation.

More
4 years 10 months ago - 4 years 10 months ago #88231 by DenisChenu
DenisChenu replied the topic: Expression manager building arrays
I'm not sure i understand, but:
demonstration.sondages.pro/index.php?sid...97&newtest=Y&lang=fr
<script>
$(document).ready(function(){
$("#question{QID} table.question tbody:visible:gt(0)").hide();
});
</script>
With the second question array filtered + Random answer order

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 .
Last Edit: 4 years 10 months ago by DenisChenu. Reason: array filtered + Random answer order

Please Log in to join the conversation.

More
4 years 10 months ago #88240 by jelo
jelo replied the topic: Expression manager building arrays
Thanks for demonstration but I am afraid it isn't related to my example.

An item should be picked NOT by the respondent, but by limesurvey.
After Q1 and Q2 the ticked item of Q2 should checked against three predefined items.
If Answer of Q2 is on the list an item from Q1 should be picked randomly by limesurvey.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now