This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help
Limiting what someone can see by using a context
You can set a context for an associate. This means that they see reports and data that have been tailored for them according to the context. For example, if you have a survey asking for customer ratings of a restaurant chain, you might want each restaurant manager to see the data specific to their own restaurant, but also allow them to see how their data compares to the other restaurants. If the survey does not contain any reports or analyses that have a context applied, the context set for an associate will have no effect.
To use context fields you must:
- Have a survey which has been created with contexts set on reports and analyses
- Know which variable(s) have been used as the context data set
- Know which value of the context variable is appropriate for the associate
When your associate logs into Snap WebHost and views analyses in a survey which has a context specified by you, Snap WebHost will apply the context to the data before creating the analysis. The context is not visible to the associate.
Associates are given permission to see a survey through the My Account section of Snap WebHost. (You may also assign surveys to associates with a context set by uploading an associate CSV file.)
- Log onto Snap WebHost. Upload the published survey with contexts if you have not already done so.
- Select the tab. Your list of associates will be shown. This will be empty if you have not created any.
- Click to give an existing associate access to the survey. Click Add new associate and complete the form for a new associate.
- The list box on the left lists all surveys that are loaded in your account. Double-click on whichever surveys you want to give the associate access to. As you do so the survey will move from the box on the left to the box on the right.

- Select the survey in the right-hand box that you wish to apply a context to.
- Type the required context in the field in this example). Note that the context will not be checked here. It is only checked when it is used, and it is only used when the associate logs in and looks at a report or analysis.

- Click away from the field. The context will appear in curly brackets after the survey name.
- Ensure that the associate has or checked and that the box is checked. (s enables them to see the analyses that you have uploaded. enables them to create their own analyses. allows them to log into their account.)
- Click to save your changes.
Test that the reports in the survey behave as you expect
- Select .
- Click for the person whose context report you wish to check. The context associated with a survey is displayed in their survey list. You can tell it is a context as it is enclosed in {} brackets (filters are enclosed in [] brackets).

- Click in the section.

This will take you into the associate's view of the surveys.
- Select the survey with the context value you have just set up.
- Select in the left hand pane to display the list of available reports.
- Select a report and confirm that the report is tailored according to the defined context.

- Look at any other reports to confirm that the context applies to all of them.
- Select to return to your own account.