This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:create:table-layout-dropdowns [05.02.2015 16:47] – [JavaScript for to date Option] alexander.ritter | en: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 | + | Under **Compose |
<code php> | <code php> | ||
Line 42: | Line 42: | ||
<table width=" | <table width=" | ||
< | < | ||
- | <col width=" | + | <col width=" |
- | <col width=" | + | <col width=" |
- | <col width=" | + | <col width=" |
- | <col width=" | + | <col width=" |
<col width=" | <col width=" | ||
</ | </ | ||
<tr> | <tr> | ||
- | < | + | <td>from: |
- | < | + | <td>%input:%ST18%</ |
- | < | + | <td>to:%input:%ST19%</ |
- | < | + | <td>%input:%ST20%</ |
<td> | <td> | ||
</ | </ | ||
Line 179: | Line 179: | ||
==== Check Input ==== | ==== Check Input ==== | ||
- | If you want to install an additional consistency check in order to verify that a participant' | + | If you want to install an additional consistency check in order to verify that a participant' |
- | If you have created the questions as shown in the examples, the following | + | If you have created the questions as demonstrated |
- | : | + | |
* [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 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. | + | 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, | In order to show the participant an error message and redisplay the question in these circumstances, |