Filter multiple choice list based on previous question

Hello, I am trying to set up a filtered question using a look up table but am struggling to set it up properly.

I am trying to create a question (primary_shock) where the set of options are those that were selected from another multiple choice question (new_shock). Would someone be able to share the right syntax for setting this up.


Hi Christy,

To achieve this workflow, you'll need to use the lookup tables feature to build dynamic multiple choice lists.

The result of your first lookup table (which I'll call #form/first) can then be used to filter each item from the second lookup table through the selected() function.

Your filter would look something like

selected( #form/first, id)

to filter out any choices (by id) which weren't in the list of selected options from your first table.