Pular para o conteúdo principal

FV Decipher Support

Todos os tópicos, recursos necessários para FV Decipher.

Base de Conhecimento da FocusVision

Term Tag: Terminate/Screen Out Respondents

1:  Overview

The <term> element is used to terminate respondents. Use the cond attribute to create condition logic that will terminate respondents if evaluated to True.

<term cond="Q1.r6">Q1: Selected "None of the above" at Q1</term>

Use human-readable, descriptive text within the body of the <term> element that will show up in the Terminates tab of the field report. This will better help you understand why a respondent was terminated.

You can use the mutator function, createTerminateTables(), to automatically generate a <virtual> question capturing all of the terminates for a particular project.

2:  Attributes

The <term> element has access to the following attributes:

Attribute Type Description
cond string Python expression that must be True in order to execute
dupeCheck string Checks for duplicate data and terminates if found (cannot be used with cond)
incidence bool Include in incidence count? (default is 1)
markers slist Comma-separated list of markers to set before terminating
label string Unique symbolic identifier (only required if using dupeCheck)

2.1:  cond - Set the Terminate Condition

The cond attribute controls whether or not the respondent should terminate. If the condition evaluates to True, the <term> element will execute and the respondent will be terminated.

For example, in a survey that is fielded for females only, you may see something like:

<radio label="Q1" optional="0">
  <title>Are you...</title>
  <row label="r1">Male</row>
  <row label="r2">Female</row>

<term cond="Q1.r1">Q1: Male respondent</term>

2.2:  dupeCheck - Terminate Based on Duplicate Values

The dupeCheck attribute will terminate if the value provided already exists within the dataset. This includes qualified, terminated and partial respondents.

For example, to terminate someone who has entered a duplicate email address:

<text label="Q1" optional="0">
  <title>Please enter your email address below:</title>

<term label="Email_Check" dupeCheck="Q1.val">Q1: Duplicate Email Address</term>

In the example above, if anyone enters an email address that has already been provided at Q1 (even if terminated or partial) then they will be terminated.

You can also use this to terminate anyone who enters the survey with an extraVariable that has already been seen:

<term label="Duplicate_ID" dupeCheck="ID" incidence="0">ID Check: Duplicate ID</term>

The <term> tag's label attribute can only be used when working in the XML editor as it is incompatible with the user interface.

2.3:  incidence - Control Incidence Counts Based on Termination

The incidence attribute controls whether or not to record the terminated respondent in the incidence count.

If incidence="0" is specified, the respondent will not appear in the incidence calculation.

Incidence calculation is: (qualified + overquote) / (click-through - partial - excluded)

For example:

<term cond="QDisclaimer.r2" incidence="0">Disclaimer: Disagreed to disclaimer</term>

2.4:  markers - Set a Marker When Terminated

The makers attribute enables you to set additional markers when terminating the respondent.

For example:

<term cond="Q1.c1.all" markers="straightliner,Q1_SL">Q1: Straightlined at Q1</term>

<term cond="(timeSpent() < 300) and not gv.isSST()" markers="speeder,lt_5minutes">Speeder: Less than 5 minutes</term>

2.5:  label - Set the Terminate Name

The label attribute is only required if using the dupeCheck attribute. This is the unique identifier for the <term> element.

<term dupeCheck="Email.val" label="Email_Checker">Email: Duplicate Email Entered</term>

3:  What's Next?

Learn more: Adding Condition/Skip Logic.