Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:create:filter-items [26.01.2015 07:11] alexander.ritteren:create:filter-items [27.01.2021 14:49] sophia.schauer
Line 245: Line 245:
 question('AF05', $selection); // show the follow-up question incl. item 13  question('AF05', $selection); // show the follow-up question incl. item 13 
 </code> </code>
 +
  
 The ID of the additional item has to be entered in order for this filter to work. Certainly, identifying the items present in the second question, but not in the first, could be done first of all. The function ''[[http://de.php.net/manual/en/function.array-diff.php|array_diff()]]'' returns a list of these list elements and by using the function ''[[http://de.php.net/manual/en/function.array-merge.php|array_merge()]]'', the lists can then be merged.  The ID of the additional item has to be entered in order for this filter to work. Certainly, identifying the items present in the second question, but not in the first, could be done first of all. The function ''[[http://de.php.net/manual/en/function.array-diff.php|array_diff()]]'' returns a list of these list elements and by using the function ''[[http://de.php.net/manual/en/function.array-merge.php|array_merge()]]'', the lists can then be merged. 
Line 258: Line 259:
 question('AF05', $auswahl); // show the follow-up question, incl. additional items question('AF05', $auswahl); // show the follow-up question, incl. additional items
 </code> </code>
 +
en/create/filter-items.txt · Last modified: 19.05.2021 21:17 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki