Welcome to the forum @Ada_S and thanks for adding your profile picture. It helps build community! When you get a chance, please introduce yourself on this forum thread.
What you ask is certainly possible! You'll need to use this syntax:
selected(${accident_type}, '8')
The syntax you're using (${accident_type}='8'
) will only work when referencing a select_one
type question. Check out the section of the XLSForm docs on relevant
for more details: https://xlsform.org/en/#relevant