Welcome, Guest
Username: Password: Remember me

TOPIC: Expression manager building arrays

Expression manager building arrays 1 year 11 months ago #88159

  • jelo
  • jelo's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 470
  • Thank you received: 52
  • Karma: 16
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 administrator has disabled public write access.

Re: Expression manager building arrays 1 year 11 months ago #88171

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
Hello,

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

Denis
The administrator has disabled public write access.

Re: Expression manager building arrays 1 year 11 months ago #88217

  • jelo
  • jelo's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 470
  • Thank you received: 52
  • Karma: 16
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 administrator has disabled public write access.

Re: Expression manager building arrays 1 year 11 months ago #88231

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
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
Last Edit: 1 year 11 months ago by DenisChenu. Reason: array filtered + Random answer order
The administrator has disabled public write access.

Re: Expression manager building arrays 1 year 11 months ago #88240

  • jelo
  • jelo's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 470
  • Thank you received: 52
  • Karma: 16
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 administrator has disabled public write access.
Time to create page: 0.110 seconds
Donation Image