To add single items (i guess it may have the ID 99) you won't need an array_slice()
$allItems = array_merge(
[99],
array_slice($items, 0, 25),
array_slice($bogus, 0, 1),
array_slice($items, 25, 25),
// ...
> if a participant select a specified answer, I want their interview to be done and for them to see a text element
Let's start a new question in the online support for that - it's getting buzy down here.
What you need is such a JavaScript code on the page, and it may have to say something like this:
function onSelect(evt) {
var info = evt.detail;
if ((info.item == 91) && (info.value != 2)) {
SoSciTools.submitPage();
}
}
This is for item 91 for now, you'll have to add conditions for the other 3 bogus items as well.
For the error message, you may need a little PHP filter on the next page.