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:table-layout-dropdowns [05.02.2015 16:47] – [JavaScript for to date Option] alexander.ritteren:create:table-layout-dropdowns [23.04.2021 17:29] (current) – [Version 1] sophia.schauer
Line 23: Line 23:
  
  
-First of all, place the following PHP code on a page in the questionnaire in **Compose Questionnaire** to to prepare the placeholders for the input fields.+Under **Compose questionnaire** (using element "HTML code") or in a text module (display: "HTML code") insert the HTML code for the table:
  
 <code php> <code php>
Line 42: Line 42:
 <table width="100%" cellspacing="0" cellpadding="0" border="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0">
   <colgroup>   <colgroup>
-    <col width="20%"> +    <col width="22%"> 
-    <col width="20%"> +    <col width="18%"> 
-    <col width="20%"> +    <col width="22%"> 
-    <col width="20%">+    <col width="18%">
     <col width="20%">     <col width="20%">
   </colgroup>   </colgroup>
   <tr>   <tr>
-    <td>%ST17%</td> +    <td>from:%input:%ST17%</td> 
-    <td>%ST18%</td> +    <td>%input:%ST18%</td> 
-    <td>%ST19%</td> +    <td>to:%input:%ST19%</td> 
-    <td>%ST20%</td>+    <td>%input:%ST20%</td>
     <td>     <td>
 </code> </code>
Line 179: Line 179:
 ==== Check Input ==== ==== Check Input ====
  
-If you want to install an additional consistency check in order to verify that a participant's input is sensible, do this with a filter on the __next__ page in the questionnaire ([[:en:create:checks#customized_response_check|Check Responses: Customized Response Check]]). In order to program this filter, you need the return values of your individual questions, which you can take from the **Variables Overview**.+If you want to install an additional consistency check in order to verify that a participant's input is sensible, do this with a filter on the __next__ page in the questionnaire ([[:en:create:checks#customized_response_check|Check Responses: Customized Response Check]]). In order to program this filter, you need the return values of your individual questions, which can be taken from the **Variables Overview**.
  
-If you have created the questions as shown in the examples, the following will be shown: +If you have created the questions as demonstrated in the examples, you will see the following:
-:+
  
   * [ST17] and [ST19] respectively\\ 1 = January\\ 2 = February\\ ...\\ 12 = December\\ -9 = not answered   * [ST17] and [ST19] respectively\\ 1 = January\\ 2 = February\\ ...\\ 12 = December\\ -9 = not answered
Line 188: Line 187:
   * [ST21]\\ 1 = not selected\\ 2 = selected   * [ST21]\\ 1 = not selected\\ 2 = selected
  
-A filter is used to ensure that the date of leaving the company is always after the date of joining the company. In order to do this, ST19 has to accept a later month than ST18if the person joined and left within the same year. As long as the year of leaving (ST20) is chronologically after the year of joining (ST18), the month is arbitrary. +A filter is used to ensure that the date of leaving the company is always after the date of joining the company. In order to do this, ST19 has to accept a later month than ST18 if the person joined and left within the same year. As long as the year of leaving (ST20) is chronologically after the year of joining (ST18), the month is arbitrary. 
  
 In order to show the participant an error message and redisplay the question in these circumstances, create a text element in the **Text Elements and Labels** menu, which you can then use later on as an error message ("durationE" in the example). In order to show the participant an error message and redisplay the question in these circumstances, create a text element in the **Text Elements and Labels** menu, which you can then use later on as an error message ("durationE" in the example).
en/create/table-layout-dropdowns.txt · Last modified: 23.04.2021 17:29 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki