Skip to content

How to use showif with mc_multiple (or select_multiple)

ukuvainik edited this page Nov 26, 2020 · 5 revisions

For an mc_multiple (or select_multiple, or any item that allows multiple responses) values are stored comma-separated, e.g

1, 4, 7
1, 2, 3
4, 7

If you want to show an item only for a specific combo do item == "4, 7"

If you want 4 and 7 both to be checked, but others are allowed too, it's a little more complicated

item %contains_word% "4" | item %contains_word% "7"

Or if you simply want one to be checked

item %contains_word% "4"

You need to use %contains_word% instead of simply %contains% so that the showif triggers for "4" but does not trigger for "14".

Notably, the default quotation marks of OpenOffice (“”) will not work. It is better to copy the quotation marks from this page: ""

Example table