Skip to content

Contains

lallysmbc edited this page Sep 1, 2020 · 2 revisions

The contains condition checks whether an answer to a question contains a specified value.

This can be useful for checkbox but also other inputs where a contains is required.

The condition syntax is:

New Syntax

{
    "conditionType": "Contains",
    "comparisonValue": "pears",
    "questionID" : "favorouriteFruits"
}

for "banana,apples,pears" this gives true for "banana,apples" this gives false

Legacy Syntax

{
    "checkboxContains": "checkBoxContains",
    "questionID" : "favorouriteFruits"
}
Clone this wiki locally