This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
en:create:inputs-custom [06.01.2015 20:49] – [Example: Use of JavaScript] alexander.ritter | en:create:inputs-custom [17.03.2021 20:45] – [The Problem] 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. [[: |
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 '' | ||
Line 38: | Line 38: | ||
There are two major limitations when using custom form elements: | There are two major limitations when using custom form elements: | ||
- | - The meaning of the response | + | - The meaning of the answer |
- Making a response compulsory can be implemented with a [[: | - Making a response compulsory can be implemented with a [[: | ||
- If you want to give the participant the option of using the Back button, or if the page should be shown again if information is incomplete, you have to ensure that your form element shows a response given previously. In order to do so, you can read the value with '' | - If you want to give the participant the option of using the Back button, or if the page should be shown again if information is incomplete, you have to ensure that your form element shows a response given previously. In order to do so, you can read the value with '' |