Skip to Content

Logic, Branching, and Validation

In Wejot, “logic” is how you control what respondents can see and do.

Logic typically covers:

  • Which questions are shown (display conditions)
  • Where respondents go next (branching and jumps)
  • When the survey ends early (termination rules)
  • Whether an input is valid (validation rules)

You can describe logic in natural language. Wejot turns it into executable rules.

You do not need to write code or build complicated condition trees manually.


Branching based on answers

If the respondent chooses “Not used”, skip the detailed experience questions.

Showing questions conditionally

Only show the follow-up question when satisfaction is 6 or below.

Ending the survey for ineligible respondents

If the respondent is not in the target city, end the survey immediately.

Validating inputs

Require the phone number to be 11 digits, otherwise show an error message.

Implementing save and resume with logic

For longer surveys, or when respondents may not be able to finish in one session, you can use logic code to implement save and resume. This saves the respondent’s current progress so they can continue when they return to the survey.

You do not need to write the code yourself. Simply tell the AI assistant what you need. For example:

Please write save-and-resume logic code for this survey, so respondents who leave before finishing can return and continue where they left off.

If you have specific requirements for how progress is saved, when it should be restored, or how long it should remain valid, include them in your request. The AI assistant will generate logic code for your survey scenario.


Well-designed logic:

  • Improves answer quality by keeping questions relevant
  • Reduces respondent fatigue
  • Protects the validity of the study (eligibility control)

Logic is part of the research design—not an afterthought.

Last updated on