Hi! Pardon me if this has been asked before. I perused the forums and didn't find anything.
I've launched an intercept survey on our website using Website/App Feedback. The intercept is using JavaScript to embed a multi-value variable, which I'm passing into the survey in the survey flow. For the sake of explanation, let's say this variable is fruit, and fruit can have one or more values.
I am wanting to create a new variable that counts how many fruits are embedded in each response. Let's call it fruit_count. So, if for a given response fruit = "orange", fruit_count should equal 1. If fruit = 'banana, strawberry', fruit_count should equal 2, and so on.
Does anyone know a way to achieve this? The field editor in the Data Analysis tab looked promising, but was a dead end.
Thanks! Grateful for the support in this community.
Creating a new variable that counts the values of another embedded variable
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
