Logic Block Pages: Adding a Logic Block
This article will show you how to add a logic block to a Logic Block Page
Background
Logic blocks are used for a variety of reasons. The most common are:
- Terminating Respondents
- Skipping to questions/pages
- Setting questions and/or variables
Add a Block
- Add your 'Logic Block Page' if you haven't already
- See article: Add a Logic Block Page
- After you have added your 'Logic Block Page', click on the page itself to open it. This will open logic card on the main screen
- Click on '+ Block'
- In the 'Run Actions' drop-down you can select either:
- 'Always' (default) - This will run this logic every time you get to it in the survey
- 'Only If" - This opens up the condition field so you can use utilize a formula
- 'Always' (default) - This will run this logic every time you get to it in the survey
- You can also enter in an optional 'Description' if you need to add a note or reminder for yourself or other person reviewing the project. This is helpful if you as a primary programmer will be out of the office and somebody will be finishing up and testing for you.
- Next use the 'Add Action' menu to select what you are looking to do
Adding an Action
The following are the actions available to you when using a logic block
- Set Question
- This allows you to set a question to a specific response OR use a formula to set it
- Set Variable
- Much like 'Set Question', this option allows you to set a variable to a specific response OR use a formula to set it
- Clear Variable
- This option will allow you to blank out a variable
- The associated 'Clear Randomization' toggle can clear the randomization for that datapoint
- Clear Question
- This option will allow you to blank out a question
- The associated 'Clear Randomization' toggle can clear the randomization for that datapoint
- Skip
- This will allow you to skip to a specific question or page
- Check Quotas
- This is used to if you are using overall quotas. This does not work with quota pages as they are their own grid and quota check
- Terminate
- This will allow you to terminate a respondent based on your specific criteria
- See article: Terminating a Respondent
- Evaluate Concept
- Allows you to run a concept assignment
- Call Webhook
- The WEBHOOK action can be configured to send a POST request to a URL, with an optional arbitrary payload. Both the URL and the payload are parsed for piped formulas like other text content.