Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
en:create:navigation [09.03.2020 12:24] – created erasmusen:create:navigation [09.03.2020 12:41] erasmus
Line 1: Line 1:
 ====== Navigation in the Questionnaire ====== ====== Navigation in the Questionnaire ======
  
-Participants usually start on the first page and then fill out the questionnaire sequentially. The sequence can be changed with ''[[:en:create:functions:setpageorder]]'' or ''[[:en:create:functions:gotopage]]]', but the participants still follow the sequence given by the project manager.+Participants usually start on the first page and then fill out the questionnaire sequentially. The sequence can be changed with ''[[:en:create:functions:setpageorder]]'' or ''[[:en:create:functions:gotopage]]]'', but the participants still follow the sequence given by the project manager.
  
 This tutorial describes how to add a menu or navigation to the questionnaire so that participants can jump between pages and/or sections. This is especially useful when using a form in SoSci Survey to get specific information of your participants  (see also [[:en:create:mix-forms]]). This tutorial describes how to add a menu or navigation to the questionnaire so that participants can jump between pages and/or sections. This is especially useful when using a form in SoSci Survey to get specific information of your participants  (see also [[:en:create:mix-forms]]).
Line 12: Line 12:
 Step one is to fill the IDs on every page which your participants can jump to, under "Compile Questionnaire". Enter the title of your page as //Note//. Step one is to fill the IDs on every page which your participants can jump to, under "Compile Questionnaire". Enter the title of your page as //Note//.
  
-{{:de:create:scr.navigation.pageid.png?nolink|Enter page ID and note}}}+{{:de:create:scr.navigation.pageid.png?nolink|Enter page ID and note}}
  
-The navigation buttons are created by the function ''[[:de:create:functions:buttontopage]]'. This function generates HTML-Code, which can be implemented in the questionnaire page using ''[[:en:create:functions:html]]'. With the following PHP-code you are able to create buttons on a questionnaire page with different purposes.+The navigation buttons are created by the function ''[[:de:create:functions:buttontopage]]''. This function generates HTML-Code, which can be implemented in the questionnaire page using ''[[:en:create:functions:html]]''. With the following PHP-code you are able to create buttons on a questionnaire page with different purposes.
  
 <code php> <code php>
Line 87: Line 87:
 </code> </code>
  
-In the **HTML-Template** you need to add CSS-statements within the ''<style>'' section matching your [[[:en:create:layout|Questionnaire Layout]]]:+In the **HTML-Template** you need to add CSS-statements within the ''<style>'' section matching your [[:en:create:layout|Survey Layout]]:
  
 <code css> <code css>
Line 122: Line 122:
 </code> </code>
  
-Whether or not the page is completely filled in, the PHP code must check the completeness by using  ''[[:en:create:functions:value]]' or ''[[:en:create:functions:getItems]]' respectively. The CSS-classes ''complete'' and ''incomplete'' can then be specified as the fourth parameter in the function ''[[:en:create:functions:buttontopage]]''. The second and third parameters remain empty with ''NULL''.+Whether or not the page is completely filled in, the PHP code must check the completeness by using  ''[[:en:create:functions:value]]'' or ''[[:en:create:functions:getItems]]'' respectively. The CSS-classes ''complete'' and ''incomplete'' can then be specified as the fourth parameter in the function ''[[:en:create:functions:buttontopage]]''. The second and third parameters remain empty with ''NULL''.
  
 The affiliated PHP-code is saved in *PHP-Functions* of your questionnare and could look like this: The affiliated PHP-code is saved in *PHP-Functions* of your questionnare and could look like this:
Line 145: Line 145:
     // "services" -> $cServices     // "services" -> $cServices
     // "documents" -> $cDocuments     // "documents" -> $cDocuments
-    // ... can be added.+    // ... and so on.
          
          
en/create/navigation.txt · Last modified: 09.03.2020 13:54 by erasmus
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki