Conditional questionnaire form

Hello to all,
I would like to make a questionnaire form where if the user answer yes to any of the question there a notification that says “not allowed” for example. Thanks in advanced for the help.