Display conditions

Compatibility:IdSurvey 6IdSurvey 7
X

Display conditions let you display an object of the questionnaire according to specific conditions.

Objects that you can apply Display Condition to are:

  • answer options
  • grid/matrix rows
  • grid/matrix columns
  • advanced grid/matrix cells
  • questions
  • groups of questions
  • pages
  • sections

Conditions can include values such as:

  • answer codes
  • values inserted in text answers (text, numbers, dates), rating and sliders.
  • contact information

Comparison symbols

These symbols are used to compare two values

  • == equal to
  • != different from
  • < less than
  • > greater than
  • <= less than or equal to
  • >= greater than or equal to

Refer to data

In IdSurvey Display Conditions you can refer to different types of data.

Answer code
By writing the question code as the first value, IdSurvey will compare it with the answer code written after the operator.
if( Q1 != 1 )
Checks if answer code 1 was not selected on question Q1.

Values from open end answers, grids, rating and slider
By writing question code between square brackets, IdSurvey will compare values inserted in open end questions, rating and slider.
if( [Q1] <= 50 )
Checks if the value inserted as answer in question Q1 is less or equal to 50.
if( [Q2.1] == 80 )
Checks if the value inserted in the row 1 of grid question Q2 is equal to 80.
if( [Q3.2.1] != 10 )
Checks if the value inserted in the cell made by crossing of row 2 with column 1 of 3D Matrix Question Q3 is different than 10.

Values drag&drop
By writing question code followed by the answer code of a drag&drop question between square brackets, IdSurvey will compare the position of that answer in the list.
if( [Q1.1] == 1 )
Checks if answer .1 of drag&drop question Q1 is placed as first in the list.
if( [Q1.3] != 1 )
Checks if answer .3 of drag&drop question Q1 is placed in a position different than the first in the list.

Values from contacts database fields
To refer to a value of the contacts database, you have to write the name of the field between curly brackets.
if( {gender} == m )
Checks if the field “Gender” of each respondent is populated with the value “m”

Note: you can refer to a value inserted in (square brackets) only with open end questions, rating and slider. For this types of question IdSurvey records not only the answer code but also the value inserted by the respondent.

Only a single value for each simple question, one value for each row of a grid and one value for each cell of an advanced grid can exist. 

For more information check IdSurvey guide or the specific article of the Knowledge base. 

Advanced functions

ContainsText
It verifies if a certain text is present in an open end question.
if(ContainsText ([Q1],'sea')==1)
Checks if the question Q1 text answer contains word “sea”.

CountCode
It counts number of selected options in a multiple choice question.
if(CountCode (Q1) >= 3)
Checks if at question Q1 3 or more answers were selected.

CountResponsesWithCode
It counts number of questions where a specific answer option was selected.
if(CountResponsesWithCode (Q1,Q2,Q3,Q4,Q5,Q6,99) >= 3)
Checks if you answered “Don’t know” (code 99) at 3 or more questions between Q1, Q2, Q3, Q4, Q5 e Q6 (in each question “Don’t know” option has code 99).

CountResponsesWithText
It counts number of questions where you answered with a specific text or number.
if(CountResponsesWithText (Q1,Q2,Q3,Q4,Q5,Q6,'sea') >= 3)
Checks if the word “sea” was used in 3 or more answers in questions Q1, Q2, Q3, Q4, Q5 e Q6.

CheckQuota
It verifies if a certain quota is open or closed.
if(CheckQuota ('Parents') == 1)
Checks if quota named “Parents” is closed.
if(CheckQuota ('Parents') == 0)
Checks if quota named “Parents” is open

Math (+,-,*,/)
Math symbols can be used to formulate operations.
if(([Q1]+[Q2]) <= 100 )
Checks if the sum of numerical answers of questions Q1 and Q2 is less or equal to 100.

 

Leave A Comment?