You can add simple or complex logic to end the survey, based on how a respondent answers one or more questions, or the metadata on the record. End Survey logic ensures the respondent sees only the questions that are relevant to their experience and/or that the survey is ended if a respondent is disqualified for any reason.
End Survey logic is applied when the respondent submits the page that contains the trigger question(s).
To add End Survey logic to your form after you've added all sections and questions/elements, navigate to the Logic tab in the survey set up interface...

...then click on the End Survey + to add a rule.

To create your End Survey logic:
- Set the condition for the rule. That is, should it apply if any or all of the scenarios specified in the rule occur?
- Then select the type of rule, depending on whether the logic is based on a question/response or metadata on the record.
- Metadata might be added to a record using JavaScript.
- If your rule is based on a question, select the question from the dropdown menu.
- If it is based on metadata, enter the key for the metadata.
- Click on the + to add more questions or metadata keys to your rule.
- Select the operator for the rule.
- If you choose Equals or Is not equal to you must then specify a value.
- Choose Is empty or Is not empty if the logic should be triggered when the question is not answered (i.e. empty) or is answered (i.e. not empty).
- If you are using metadata in your rule, you also have the Exists and Does not exist as options for the operator.
- Click on the + to add more operator fields to your rule.
- Indicate if the respondent should see the default final page message, or if you would like to display a custom message. If you select a custom message, enter the text for the message in the field provided.
- Check Redirect to URL if you would like to redirect the respondent to a website after the survey is ended.
- Check Do not record the survey data if you do not want the record to appear in your reports.
Click on Save when you are done configuring your rule.

Your rule will be summarized on the Logic main page and, from there, can be edited or deleted.

Be sure to test all your logic/rules in the form preview before publishing and distributing your survey.