Auto-calculate a select multiple based on a previous response

Hi all - I’m attempting to create a calculation whereby a select multiple question is auto-populated based on how the previous question is completed.

E.g., If Option A is selected for Question 1, I want Option A1 and Option A2 to be automatically selected in Question 2 (see screenshots below). (The calculation works fine when ‘option_a1’ alone is used in the calculation, but there seems to be an issue with saying “‘option_a1’ and ‘option_a2’” in the expression.)

survey tab:

This question is similar to @RayRay’s question here but appears unresolved.

Thanks so much for any guidance!

Welcome to the community, @lzlzlz! Could you also share with the community sample questions and choices and the conditions that should show when certain options in question 1 are selected? Correct me if I am correct, question 1 seems to be a select_one question type while question 2 seems to be a select_multiple question type.

You need to correct your syntax in thd calculation to: if(…, “option_a option_b”, …). select_multiple values are stored together in a string, separated by one blanc, (in the order if the choices list).

1 Like

This worked, thanks so much! Full calculation below for anyone having the same issue:

1 Like

@wroos, :bowing_man: @lzlzlz :tada: