Setting Skip Patterns in Xlsform

Hi Team,

I want to set a skip patten at the beginning of questionnaire, consenting
section such that if respondent clicks No, he doesn't want proceed with the
questionnaire then the system skips to the end of the questionnaire and
closes otherwise if respondent clicks he want to continue with the
questionnaire, then the rest of the questions are asked.

Any assistance would be highly appreciated.