This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:create:inputs-custom [06.01.2015 20:53] – [Limitations] alexander.ritter | en: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:// | HTML form elements (e.g. text input fields, checkboxes, drop-downs) can be programmed quickly: the essentials can be found on [[http:// | ||
- | 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. [[: | + | 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. [[: |
===== 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 //[[: |
* 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, | * 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, | ||
* 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, | * 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, | ||
Line 28: | Line 28: | ||
* Enter a value in your form element and click on " | * Enter a value in your form element and click on " | ||
- | If you program more sophisticated input elements -- e.g. with JavaScript and/or Flash -- then, as a rule, you need to have hidden input fields to store the measured/ | + | If you program more sophisticated input elements -- e.g. with JavaScript and/or Flash -- then, as a rule, you need to have hidden input fields to store the measured/ |
In this instance, do __not__ use the PHP function '' | In this instance, do __not__ use the PHP function '' |