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:48] – [Check Input] alexander.ritter | en:create:table-layout-dropdowns [18.09.2024 21:35] (current) – [Version 1] admin | ||
---|---|---|---|
Line 7: | Line 7: | ||
A total of four dropdown selections (ST17 to ST20 in the example), as well as a multiple-choice question (ST21) is required in the question. If the "to date" option is selected, this means the dropdowns for the end date will be disabled using JavaScript. This prevents the simultaneous entry of an end date and "to date" | A total of four dropdown selections (ST17 to ST20 in the example), as well as a multiple-choice question (ST21) is required in the question. If the "to date" option is selected, this means the dropdowns for the end date will be disabled using JavaScript. This prevents the simultaneous entry of an end date and "to date" | ||
- | **Tip: | + | **Tip: |
===== Step-by-Step ===== | ===== Step-by-Step ===== | ||
- | - Create a new question | + | - Create a new question |
- | - Create another new " | + | - Create another new " |
- Duplicate both questions (ST19 and ST20) for the end date to be input. | - Duplicate both questions (ST19 and ST20) for the end date to be input. | ||
- Create another question, this time a " | - Create another question, this time a " | ||
- Follow the instructions below (version 1 __or__ version 2) to place the 5 questions next to each other. In **Compose Questionnaire**, | - Follow the instructions below (version 1 __or__ version 2) to place the 5 questions next to each other. In **Compose Questionnaire**, | ||
- | ===== Version 1 ===== | + | ==== Version 1 ==== |
Use [[inputs-single|freely place input fields]] to conveniently place the dropdown selection fields in the HTML table. However, the multiple choice question "to date" has to be inserted as a question in the usual way as a label is required next to the input field. | Use [[inputs-single|freely place input fields]] to conveniently place the dropdown selection fields in the HTML table. However, the multiple choice question "to date" has to be inserted as a question in the usual way as a label is required next to the input field. | ||
- | First of all, place the following PHP code on a page in the questionnaire in **Compose | + | Under **Compose |
- | + | ||
- | <code php> | + | |
- | prepare_input(' | + | |
- | prepare_input(' | + | |
- | prepare_input(' | + | |
- | prepare_input(' | + | |
- | </ | + | |
- | + | ||
- | Insert | + | |
<code html> | <code html> | ||
Line 42: | Line 32: | ||
<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> | ||
</ | </ |