Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
en:create:functions:prepare_input [19.12.2014 18:05] – created alexander.ritteren:create:functions:prepare_input [26.09.2020 14:24] sophia.schauer
Line 1: Line 1:
 ====== prepare_input() ====== ====== prepare_input() ======
  
-''void **prepare_input**(string //Kennung//, [string //Optionen//])''+''void **prepare_input**(string //ID//, [string //options//])'' 
 + 
 +By using ''prepare_input()'', you can put a text input field, a drop-down selection, a normal selection field, or a multiple-choice selection field in another question or in a text element.  
 + 
 +**Note:** Meanwhile you can place input fields freely in the questionnaire using placeholders and without ''prepare_input()'': [[:en:create:inputs-single]] 
 + 
 + 
 +  * //ID//\\ The ID of the question (for the drop-down selection) or the items, which should be shown elsewhere. 
 +  * //options//\\ If the ID of a drop-down selection was given as the first parameter, a list of options (item numbers) may be given as the second parameter, in case the order is altered or not all options should be offered for selection.
  
-Mit ''prepare_input()'' können Sie ein Texteingabefeld, eine Dropdown-Auswahl oder ein gewöhnliches Auswahl- oder Mehrfachauswahlfeld in einer anderen Frage oder in einem Textbaustein platzieren. 
  
-  * //Kennung//\\ Die Kennung der Frage (bei der Dropdown-Auswahl) oder des Items, welches an anderer Stelle angezeigt werden soll. 
-  * //Optionen//\\ Wenn als erster Parameter die Kennung einer Dropdown-Auswahl angegeben wurde, kann als zweiter Parameter optional eine Liste von Optionen (Item-Nummern) angegeben werden, falls die Reihenfolge verändert oder nicht alle Optionen zur Auswahl angeboten werden sollen. 
  
-Die Verwendung dieser Funktion wird ausführlich im Kapitel [[:de:create:inputs-single|Eingabefelder frei platzieren]] beschrieben. 
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki