Double columns in text grids: Difference between revisions
From Catglobe Wiki
More actions
No edit summary  | 
				No edit summary  | 
				||
| Line 24: | Line 24: | ||
[[Image:DoubleColumnInTextGrid_Code.png]]  | [[Image:DoubleColumnInTextGrid_Code.png]]  | ||
== Code   | === Code ===  | ||
<source lang="javascript">  | <source lang="javascript">  | ||
//Include the following Javascript  | //Include the following Javascript  | ||
quest.gridcolumns[0] = "Personal information";  | |||
quest.gridcolumns[1] = "Company information";  | |||
</source>  | </source>  | ||
=== Source ===  | |||
Questionnaire Resource Id on cg site: 159730  | |||
Latest revision as of 08:05, 11 January 2012
Double columns in Text grid
In order to show text grid question in two columns.
As a questionnaire creator
I want to show text fields of a text grid or answers options of single/multi grid in more than one column
Example
- I have a Text grid question like below.
 
- I want to show text grid question in two columns.
 
Solution
- Add a Text grid question to Questionnaire editor like below
 - Go to menu Properties -> Question scripts -> Java script tab -> Input script
 
Code
//Include the following Javascript
quest.gridcolumns[0] = "Personal information";
quest.gridcolumns[1] = "Company information";
Source
Questionnaire Resource Id on cg site: 159730
				

