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
Next revisionBoth sides next revision
en:create:inputs-custom [06.01.2015 20:38] – [Example: Use of JavaScript] alexander.ritteren:create:inputs-custom [06.01.2015 20:49] – [Example: Use of JavaScript] alexander.ritter
Line 1: Line 1:
 ====== Use Custom Form Elements ====== ====== Use Custom Form Elements ======
  
-SoSci Survey offers a wide selection of [[:en:create:questions|question types]] -- but sometimes the types provided are insufficient in order to implement a specific display necessary for a question. If this is the case, SoSci Survey is also able to read custom (HTML) form elements. JavaScript or Flash based questions can easily be integrated with these as well.  +SoSci Survey offers a wide selection of [[:en:create:questions|question types]] -- however, sometimes these are insufficient to achieve the desired appearance required for a particular question. If this is the case, SoSci Survey is able to read custom (HTML) form elements as well. JavaScript or Flash based questions can easily be integrated in this way as well.  
  
 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 147: Line 147:
 The solution outlined above assumes that the value from the custom input element (''<input>'' or ''<select>'') will be submitted into the data record. The solution outlined above assumes that the value from the custom input element (''<input>'' or ''<select>'') will be submitted into the data record.
  
-However, it is possible that you do not want to create this type of input field at all, and wish to determine the value using JavaScript instead, and submit this value into the data record. Two changes are necessary if this is the case:+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 ''prepare_input()'' from the questionnaire page.   - Remove ''prepare_input()'' from the questionnaire page.
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