Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:create:filter-solving [28.11.2014 11:32] adminen:create:filter-solving [27.11.2020 21:08] (current) – [Filters in the Forum] sophia.schauer
Line 1: Line 1:
-====== Problem solution for filters ======+====== Problem Solution for Filters ======
  
 Filters or filter questions traditionally are a challenge for project leaders without programming experiences. Of course it is helpful to read the instructions on filters first: [[:en:create:filters|Filters and Conditional Question]]. Filters or filter questions traditionally are a challenge for project leaders without programming experiences. Of course it is helpful to read the instructions on filters first: [[:en:create:filters|Filters and Conditional Question]].
Line 5: Line 5:
 It is especially frustrating if filters don't work and you don't know what to do. This chapter describes how to find out mistakes in a fast way. It is especially frustrating if filters don't work and you don't know what to do. This chapter describes how to find out mistakes in a fast way.
  
-===== The most common problems =====  +===== The Most Common Problems =====  
  
 A filter of a questionaire usually includes 2 parts: A filter of a questionaire usually includes 2 parts:
Line 33: Line 33:
 ==== Top 3 ==== ==== Top 3 ====
  
-Is the question shown although the filter should exclude it? Or is the question even shown twice?+Is the question shown although the filter should exclude it? Or is the question even shown twice? If the warning "Items in the following question are already displayed further up on this page. This almost inevitably leads to data loss"?
  
 Please take into consideration that "roping-in" a question into a questionaire page using Drag & Drop has the same effect like the use of ''question()'' (e.g. in a filter). Maybe you roped the question in in addition to the ''question()'' command. Please take into consideration that "roping-in" a question into a questionaire page using Drag & Drop has the same effect like the use of ''question()'' (e.g. in a filter). Maybe you roped the question in in addition to the ''question()'' command.
Line 40: Line 40:
 ([[:en:create:questionnaire#delete_or_move_questions|Delete or move questions]]), so that it is only integrated through the ''question()'' command.  ([[:en:create:questionnaire#delete_or_move_questions|Delete or move questions]]), so that it is only integrated through the ''question()'' command. 
  
-===== Detect failures =====+===== Detect Failures =====
  
 The result of the function ''value()'' is not the one you have expected? Or the filter is not jumping to the point you thought? Filter and programming is no rocket science. The Server will do what has been written in the PHP code step by step. The result of the function ''value()'' is not the one you have expected? Or the filter is not jumping to the point you thought? Filter and programming is no rocket science. The Server will do what has been written in the PHP code step by step.
Line 48: Line 48:
  
   - The identification of each question is shown in squared brackets.   - The identification of each question is shown in squared brackets.
-  - In the upper right is a yellow cornerIf you move the mouse upon, is Shows the //debug information//. This is necessary for finding mistakes in filters.+  - In the upper right there is a button "debug information"Click it to see the //debug information// of the current questionnaire page. This is additional information on the page's procession -- and extremely valuable when searching for problems with filters and/or PHP code ([[:en:create:debugging]]).
   - SoScisurvey will show hints and alerts if it detects a problem. This information is not shown to normal respondents (in contrast to failures).   - SoScisurvey will show hints and alerts if it detects a problem. This information is not shown to normal respondents (in contrast to failures).
    
-The debug information explain, among other things, the results of the value() function and when the questionaire jumps to which page using ''goToPage()''. If these information are not as expected you usually found the failure.  +The debug information explain, among other things, the results of the ''value()'' function and when the questionaire jumps to which page using ''goToPage()''. Using ''[[:de:create:functions:debug|debug()]]'', the debug mode also shows the contents of PHP variables. If these information are not as expectedyou usually found the failure.  
    
-===== Filters in the forum =====+===== Filters in the Forum =====
  
-Problem not solved? Then you can ask for advice in the SoSci Survey [[http://forum.onlineforschung.org/viewforum.php?f=14|Support Board]]. You should include the following information: +Problem not solved? Then you can ask for advice in the SoSci Survey [[https://support.soscisurvey.de|Online-Support]]. You should include the following information: 
  
   - On what question is the filter based on (question type and ID)?   - On what question is the filter based on (question type and ID)?
en/create/filter-solving.1417170764.txt.gz · Last modified: 28.11.2014 11:32 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki