This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:create:inputs-custom [06.01.2015 20:38] – [Example: Use of JavaScript] alexander.ritter | en:create:inputs-custom [06.01.2015 20:53] – [Limitations] alexander.ritter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Use Custom Form Elements ====== | ====== Use Custom Form Elements ====== | ||
- | SoSci Survey offers a wide selection of [[: | + | SoSci Survey offers a wide selection of [[: |
These tools give the user a lot of freedom when designing the questionnaire -- however, the complexity involved in programming form elements can quickly get out of hand. | These tools give the user a lot of freedom when designing the questionnaire -- however, the complexity involved in programming form elements can quickly get out of hand. | ||
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 '' | ||
Line 147: | Line 147: | ||
The solution outlined above assumes that the value from the custom input element (''< | The solution outlined above assumes that the value from the custom input element (''< | ||
- | However, it is possible | + | However, it may be the case that you do not want to create this type of input field at all, and want to determine the value using JavaScript instead, and submit this value into the data record. Two changes are necessary if this is the case: |
- Remove '' | - Remove '' |