Millisecond Forums

How to "scip" a script in an Online-Batch

https://forums.millisecond.com/Topic15923.aspx

By NicolettaConColetta - 4/4/2015

Hey!
I'm almost ready to go online with my survey. However, in the practice-run through I'm facing following problem now: people can't participate in the survey, if they tick a certain box - in the script, they will be refered to the end of the survey (works perfectly fine with the "scip" command).
However, if you tick the box during the online run through, you will be refered to the textpage, saying this is the end of the survey (as it should be), but then (of course) the next script of the batch folder starts (which is the task they should not participate).
Is there any trick constructing the batch-folder to avoid this?
Thanks so much in advance,
cheers*nicole (and happy Easter:))!
By Dave - 4/5/2015

You need to use the script.abort() function, with the abortbatch parameter set to true.

<surveypage Ausschluss_Ende>
/ ontrialend = [script.abort(true)]
...
</surveypage>

This will terminate the entire batch.