Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Change text box size: Difference between revisions

From Catglobe Wiki
Cg van (talk | contribs)
No edit summary
Cg van (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Change Text box size ==  
== Change Text box size ==
You want to change the text box size  in a Text question .The script is often used together with the Maximum text length script


In order to make text box wider.
In order to make text box wider.  


As a questionnaire creator
As a questionnaire creator  


I want to change text box size  
I want to change text box size  


'''Example'''
'''Example'''  
*I have a Text grid question like below.


*I have a Text grid question like below.


*I want to change text box size.  
[[Image:ChangeTextBoxSize1.jpg]]


=== Solution ===
*I want to change text box size.


*Add a Text grid question to Questionnaire editor like below
[[Image:ChangeTextBoxSize2.jpg]]
*Go to menu Properties -> Question scripts -> Java script tab -> Input script


=== Code ===  
=== Solution  ===
<source lang="javascript" line="1">
 
*Add a Text grid question to Questionnaire editor like below
*Go to menu Properties -&gt; Question scripts -&gt; Java script tab -&gt; Input script
 
[[Image:ChangeTextBoxSize Code.jpg]]
 
=== Code ===
 
<source lang="javascript">
quest.size=50;
quest.size=50;
</source>
</source>  


=== Source ===
=== Source ===


Questionnaire Resource Id on cg site: 159730
Questionnaire Resource Id on cg site: 159730

Latest revision as of 09:39, 16 January 2012

Change Text box size

In order to make text box wider.

As a questionnaire creator

I want to change text box size

Example

  • I have a Text grid question like below.

  • I want to change text box size.

Solution

  • Add a Text grid question to Questionnaire editor like below
  • Go to menu Properties -> Question scripts -> Java script tab -> Input script

Code

quest.size=50;

Source

Questionnaire Resource Id on cg site: 159730