Expression manager building arrays

More
7 years 10 months ago #88159 by jelo
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.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
LimeSurvey Partners
More
7 years 10 months ago #88171 by DenisChenu
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 , plugin development . I don't answer to private message.
The topic has been locked.
More
7 years 10 months ago #88217 by jelo
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.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
7 years 10 months ago - 7 years 10 months ago #88231 by DenisChenu
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 , plugin development . I don't answer to private message.
Last edit: 7 years 10 months ago by DenisChenu. Reason: array filtered + Random answer order
The topic has been locked.
More
7 years 10 months ago #88240 by jelo
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.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.

Start now!

Just create your account and start using Limesurvey today.

Register now