Skip to main content
Add display logic to a pre-loaded variable

Use this procedure to add and test display logic on pre-loaded variables

Updated this week

If you are applying display logic based on a pre-loaded variable, please follow this procedure to avoid having to re-apply display logic to questions after deleting back your test panel data.

Build the survey

When building your survey, create two reporting sections: One for the variables you are using for display logic, and one for all other pre-loaded variables. In the example below, I have used 'Variables' and 'Variables With Display Logic':

In the 'variables with display logic' reporting section, manually add a Survey Specific Variable.

In this example, I have used 'UK Based: Yes, No'.

Now add display logic to the required question using the yes/no response:

Now that the variable and the display logic is in place, you can load in your participants and variables via the panel file. Just make sure to name the column and the response options for your display logic variable ('UK Based' 'Yes/No' in this example) exactly the same as you have set up in the question structure. When you import the panel file, it will add the responses to the variable you created.

You can now run your test survey and make sure that the display logic is working correctly. Once you are happy, delete back the panel file, and all the pre-loaded variables from the 'variables' theme. Leave the 'display logic' variable in place in the 'variables with display logic' theme, and load up your final panel file. The display logic will remain in place exactly as you tested it.

Did this answer your question?