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:35] – [Example: Use of JavaScript] alexander.ritteren:create:inputs-custom [06.01.2015 20:48] – [Use Custom Form Elements] 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 154: Line 154:
 **Tip:** If you only require certain internal variables of the question, set this with the {{:button.settings.png?nolink|Settings}} symbol in //Show items//. Alternatively, insert the question type "internal variables" onto the page using the PHP function ''question()'' and specify the respective item IDs.  **Tip:** If you only require certain internal variables of the question, set this with the {{:button.settings.png?nolink|Settings}} symbol in //Show items//. Alternatively, insert the question type "internal variables" onto the page using the PHP function ''question()'' and specify the respective item IDs. 
  
-If you integrate the question into the questionnaire, there is no visual change. However, there will be a hidden input field (''%%type="hidden"%%'') stored for each internal variable. The content of these fields can be read and changed with JavaScript.+There is no visual change when you insert the question into the questionnaire. However, there will be a hidden input field (''%%type="hidden"%%'') stored for each internal variable. The content of these fields can be read and changed with JavaScript.
  
  
 <code php> <code php>
-// Integrate variables 1 und 2 in question AB01 (type "internal variables")+// Use variables 1 und 2 from question AB01 (type "internal variables")
 question('AB01', '1,2'); question('AB01', '1,2');
 </code> </code>
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