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:inputs-custom [15.01.2015 19:59] alexander.ritteren:create:inputs-custom [17.03.2021 20:46] (current) – [Implementation] sophia.schauer
Line 13: Line 13:
 HTML form elements (e.g. text input fields, checkboxes, drop-downs) can be programmed quickly: the essentials can be found on [[http://de.selfhtml.org/html/formulare/index.htm|SelfHTML]] (German only). Inserting HTML code into the questionnaire is quite simple with a text element (save the HTML code as a text element and drag into the questionnaire). HTML form elements (e.g. text input fields, checkboxes, drop-downs) can be programmed quickly: the essentials can be found on [[http://de.selfhtml.org/html/formulare/index.htm|SelfHTML]] (German only). Inserting HTML code into the questionnaire is quite simple with a text element (save the HTML code as a text element and drag into the questionnaire).
  
-The problem is that SoSci Survey does not initially recognize any form elements and the data they transmit, and as a result it does not save the responses. Therefore, it is advisable to inform SoSci Survey that certain POST variables should be read and saved in the data record. [[:en:create:questions:internal|Internal variables]] and ''[[:en:create:functions:prepare_input|prepare_input()]]'' are used to do so.+The problem is that SoSci Survey does not initially recognize any form elements and the data they transmit, and as a result it does not save the responses. Therefore, it is advisable to inform SoSci Survey that certain POST variables should be read and saved in the data record. [[:en:create:inputs-single|Freely placed input fields]] are used to do so.
  
  
 ===== Implementation ===== ===== Implementation =====
  
-  * First of all, create a question with the type //Internal Variables// in the **List of Questions**.+  * First of all, create a question with the type //[[:en:create:questions:internal|Internal Variables]]// in the **List of Questions**.
   * Add at least one variable (item) to this question. It makes sense to give the variable a label: although this does not appear in the questionnaire, it can be seen in the data record. If you use multiple form elements, or if your form element will store several variables, create multiple variables (items) correspondingly.    * Add at least one variable (item) to this question. It makes sense to give the variable a label: although this does not appear in the questionnaire, it can be seen in the data record. If you use multiple form elements, or if your form element will store several variables, create multiple variables (items) correspondingly. 
   * Create a new text element in **Text Elements and Labels**. In principle, you can insert the HTML code for the form element directly into the questionnaire, but using text elements offers some advantages.    * Create a new text element in **Text Elements and Labels**. In principle, you can insert the HTML code for the form element directly into the questionnaire, but using text elements offers some advantages. 
en/create/inputs-custom.txt · Last modified: 17.03.2021 20:46 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