This code worked great! — However, I have a check box that users often select multiple items from, which the code doesn't work for.
For example, if the user selects "Team Building," the code works perfectly. But if the user selects "Team Building" and "School Project," none of the conditional form questions show. I want the conditional form questions for Team Building to show up even if they select additional options. Is there a way to have .hasValues([ ]) more akin to "contains text" rather than "is exactly text"?
Site: https://www.themosaicworkshop.org/connect/contact
Section of code I customized:
field
.id('checkbox-b7f19ceb-1ee7-4804-bcca-ab25fa62d267')
.hasValues([
'Team Building'
])
.thenShow([
'text-e29c8283-d447-427d-9e86-bdf668f67588',
'text-1253d20c-81ac-4092-abe3-3d4b774fa477',
'checkbox-7c84b455-bf81-497c-9eae-f7601f2380d9',
'checkbox-6af6207c-bf99-44b1-9946-737ad8067933',
'checkbox-832bed49-cd4d-43bd-a68b-0f6d43ebd549'
]);