Set a campaign's rules and availability
Purpose
Decide what each assessment in a campaign looks like before anything happens, write the rules that change it, and publish the result to everyone on the roster.
Who this is for
Account administrators and campaign managers.
Before you start
- A campaign with at least one assessment in it. See Publish and preview an assessment.
- Permission to change campaigns. Reading the rules needs the campaign view permission; saving or publishing needs the campaign modify permission.
Where it is
Open the campaign and choose the Rules tab. It shows one row per assessment in the campaign, and a form at the bottom for adding a rule.
Two badges at the top say where the campaign stands: Draft vN is the version you are editing, and Published vN is what participants are currently being shown. If the two differ you also see Unpublished changes — your edits are saved, but nobody is seeing them yet. A campaign that has never been published says Never published.
Put an assessment into the structure
A campaign that has never had rules starts with an empty structure, so every row reads Not in the structure. Choose Add to the structure on a row and the assessment joins it, keeping the default availability its own settings already carry — so adding a campaign that has been running for months changes nothing about who has to do what.
Only assessments in the structure can carry rules or be named by one.
Set what people see by default
Default availability on each row is what a participant is shown before any rule fires:
- Mandatory — it counts towards being finished.
- Optional — offered, never chased.
- Hidden — shown only when a rule says so.
Each change is saved as you make it. The row also shows who answers the assessment — each participant, one per organisation, or one per group — and says whether that came from the campaign's structure or from the assessment's own settings. Change who answers in the assessment itself, not here.
Add a rule
A rule reads: when this answer in the source assessment meets a condition, the target assessment changes. The form builds the underlying rule for you; ordinary rules do not require expression syntax.
- Choose the source assessment — the one whose answers are read.
- Search the source's pinned questionnaire and choose a question or result. The list shows each item's title, stored name and type, grouped by its page or panel. Matrix rows and multiple-text items appear as their own choices.
- Choose an operator and, where needed, an answer. Choice questions show the questionnaire's answer labels while saving their stable values; number and rating questions use numeric comparisons.
- To test more than one answer, choose Add condition, then decide whether all conditions (AND) or any condition (OR) must match.
- Choose what happens to the target: becomes mandatory, becomes optional or becomes hidden.
- Choose the target assessment — the one that changes.
- Choose Add rule.
The source must have a pinned questionnaire. If it does not, the form says so rather than showing an empty question list. Activate the assessment to pin its questionnaire before building the rule.
Each rule appears under the assessment it changes as a sentence using the assessment, question and answer labels, with Edit condition and Remove controls. Re-opening a guided rule restores its conditions. Use Custom expression only for an existing or specialist SurveyJS expression that the guided editor cannot represent; the platform keeps such expressions unchanged and shows their stored text with the rule.
Rules are evaluated when the source is finalised, over the answers of the participant's unit. Until then the target shows as locked rather than absent.