Contains - smbc-digital/form-builder GitHub Wiki
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"
}