Jump to content
Toggle menu
  • 915 articles
  • 3.8K files
  • 30.2K users
  • 279.2K edits
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Double columns in text grids: Difference between revisions

From Catglobe Wiki
No edit summary
Cg van (talk | contribs)
No edit summary
ย 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Challenge == ย 
== Double columns in Text gridย  ==
Showing textfields of a text grid or answers options of single/multik grid in more than one column


[[Image:Example.jpg]]
In order to show text grid question in two columns. ย 


== Solution == ย 
As a questionnaire creator
Using Java Script property of question.
ย 
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.
ย 
[[Image:DoubleColumnInTextGrid1.png]]
ย 
*I want to show text grid question in two columns.
ย 
[[Image:DoubleColumnInTextGrid2.png]]
ย 
=== Solution ===
ย 
*Add a Text grid question to Questionnaire editor like below
*Go to menu Properties -> Question scripts -> Java script tab -> Input script
ย 
[[Image:DoubleColumnInTextGrid_Code.png]]
ย 
=== Code ===


== Code 1 ==
<source lang="javascript">
<source lang="javascript">
//Include the following Javascript
//Include the following Javascript
quest.gridcolumns[0] = "Text 1";
quest.gridcolumns[1] = "Text 2";
...


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