Welcome, Guest
Username: Password: Remember me

TOPIC: How to create Triple Scale Array

How to create Triple Scale Array 3 years 1 month ago #61185

Hi,

Is it possible to create Triple Array Scale in Limesurvey. Or can we modify Dual Array Scale to triple or quadruple.

If someone has done thin before then pls let me know how to go about it.

Thanks in advance
Faizan
The administrator has disabled public write access.

Re: How to create Triple Scale Array 3 years 1 month ago #61196

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4049
  • Thank you received: 739
  • Karma: 341
You can lay out several array questions side-by-side. See this post - www.limesurvey.org/en/forum/design-issue...-slider-layout#61038
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: How to create Triple Scale Array 3 years 1 month ago #61197

Thanks for the reply.

I want to have radio buttons instead of numeric text. Is it possible to build three arrays, each with 5 radio buttons.
The administrator has disabled public write access.

Re: How to create Triple Scale Array 3 years 1 month ago #61204

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4049
  • Thank you received: 739
  • Karma: 341
Yes, but the CSS details would depend on the template you are using. The styles in the linked post should give you a starting point.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

How to create Triple Scale Array 6 months 1 day ago #103897

  • hliboi
  • hliboi's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Could somebody help me build a triple radio button scale. Example is attached. This help would be really appreciated.

Thank You

Edit:
Just saw that i would also separate headers for each scale.
Attachments:
Last Edit: 6 months 1 day ago by hliboi. Reason: adding
The administrator has disabled public write access.

How to create Triple Scale Array 6 months 10 hours ago #103939

  • hliboi
  • hliboi's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
I tried to find a solution in the above link but couldnt find where can i customize the code of the template. Please help.
The administrator has disabled public write access.

How to create Triple Scale Array 6 months 8 hours ago #103943

  • hliboi
  • hliboi's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
[code]<?xml version="1.0" encoding="UTF-8"?>
<document>
 <LimeSurveyDocType>Question</LimeSurveyDocType>
 <DBVersion>146</DBVersion>
 <languages>
  <language>pt</language>
 </languages>
 <questions>
  <fields>
   <fieldname>qid</fieldname>
   <fieldname>parent_qid</fieldname>
   <fieldname>sid</fieldname>
   <fieldname>gid</fieldname>
   <fieldname>type</fieldname>
   <fieldname>title</fieldname>
   <fieldname>question</fieldname>
   <fieldname>preg</fieldname>
   <fieldname>help</fieldname>
   <fieldname>other</fieldname>
   <fieldname>mandatory</fieldname>
   <fieldname>question_order</fieldname>
   <fieldname>language</fieldname>
   <fieldname>scale_id</fieldname>
   <fieldname>same_default</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[5997]]></qid>
    <parent_qid><![CDATA[0]]></parent_qid>
    <sid><![CDATA[41593]]></sid>
    <gid><![CDATA[259]]></gid>
    <type><![CDATA[1]]></type>
    <title><![CDATA[1]]></title>
    <question><![CDATA[]]></question>
    <preg><![CDATA[]]></preg>
    <help><![CDATA[]]></help>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[Y]]></mandatory>
    <question_order><![CDATA[2]]></question_order>
    <language><![CDATA[pt]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
   </row>
  </rows>
 </questions>
 <subquestions>
  <fields>
   <fieldname>qid</fieldname>
   <fieldname>parent_qid</fieldname>
   <fieldname>sid</fieldname>
   <fieldname>gid</fieldname>
   <fieldname>type</fieldname>
   <fieldname>title</fieldname>
   <fieldname>question</fieldname>
   <fieldname>preg</fieldname>
   <fieldname>help</fieldname>
   <fieldname>other</fieldname>
   <fieldname>mandatory</fieldname>
   <fieldname>question_order</fieldname>
   <fieldname>language</fieldname>
   <fieldname>scale_id</fieldname>
   <fieldname>same_default</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[5998]]></qid>
    <parent_qid><![CDATA[5997]]></parent_qid>
    <sid><![CDATA[41593]]></sid>
    <gid><![CDATA[259]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[1]]></title>
    <question><![CDATA[atributo 1]]></question>
    <preg><![CDATA[]]></preg>
    <help><![CDATA[]]></help>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[]]></mandatory>
    <question_order><![CDATA[1]]></question_order>
    <language><![CDATA[pt]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
   </row>
   <row>
    <qid><![CDATA[5999]]></qid>
    <parent_qid><![CDATA[5997]]></parent_qid>
    <sid><![CDATA[41593]]></sid>
    <gid><![CDATA[259]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[2]]></title>
    <question><![CDATA[atributo 2]]></question>
    <preg><![CDATA[]]></preg>
    <help><![CDATA[]]></help>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[]]></mandatory>
    <question_order><![CDATA[2]]></question_order>
    <language><![CDATA[pt]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
   </row>
  </rows>
 </subquestions>
 <answers>
  <fields>
   <fieldname>qid</fieldname>
   <fieldname>code</fieldname>
   <fieldname>answer</fieldname>
   <fieldname>assessment_value</fieldname>
   <fieldname>sortorder</fieldname>
   <fieldname>language</fieldname>
   <fieldname>scale_id</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[5997]]></qid>
    <code><![CDATA[1]]></code>
    <answer><![CDATA[1 escala 1]]></answer>
    <assessment_value><![CDATA[1]]></assessment_value>
    <sortorder><![CDATA[1]]></sortorder>
    <language><![CDATA[pt]]></language>
    <scale_id><![CDATA[0]]></scale_id>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <code><![CDATA[2]]></code>
    <answer><![CDATA[2 escala 1]]></answer>
    <assessment_value><![CDATA[1]]></assessment_value>
    <sortorder><![CDATA[2]]></sortorder>
    <language><![CDATA[pt]]></language>
    <scale_id><![CDATA[0]]></scale_id>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <code><![CDATA[1]]></code>
    <answer><![CDATA[1 escala 2]]></answer>
    <assessment_value><![CDATA[0]]></assessment_value>
    <sortorder><![CDATA[1]]></sortorder>
    <language><![CDATA[pt]]></language>
    <scale_id><![CDATA[1]]></scale_id>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <code><![CDATA[2]]></code>
    <answer><![CDATA[2 escala 2]]></answer>
    <assessment_value><![CDATA[1]]></assessment_value>
    <sortorder><![CDATA[2]]></sortorder>
    <language><![CDATA[pt]]></language>
    <scale_id><![CDATA[1]]></scale_id>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <code><![CDATA[3]]></code>
    <answer><![CDATA[3 escala 2]]></answer>
    <assessment_value><![CDATA[1]]></assessment_value>
    <sortorder><![CDATA[3]]></sortorder>
    <language><![CDATA[pt]]></language>
    <scale_id><![CDATA[1]]></scale_id>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <code><![CDATA[1]]></code>
    <answer><![CDATA[1 escala 3]]></answer>
    <assessment_value><![CDATA[1]]></assessment_value>
    <sortorder><![CDATA[1]]></sortorder>
    <language><![CDATA[pt]]></language>
    <scale_id><![CDATA[2]]></scale_id>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <code><![CDATA[2]]></code>
    <answer><![CDATA[2 escala 3]]></answer>
    <assessment_value><![CDATA[1]]></assessment_value>
    <sortorder><![CDATA[2]]></sortorder>
    <language><![CDATA[pt]]></language>
    <scale_id><![CDATA[2]]></scale_id>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <code><![CDATA[3]]></code>
    <answer><![CDATA[3 escala 3]]></answer>
    <assessment_value><![CDATA[1]]></assessment_value>
    <sortorder><![CDATA[3]]></sortorder>
    <language><![CDATA[pt]]></language>
    <scale_id><![CDATA[2]]></scale_id>
   </row>
  </rows>
 </answers>
 <question_attributes>
  <fields>
   <fieldname>qid</fieldname>
   <fieldname>attribute</fieldname>
   <fieldname>value</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[5997]]></qid>
    <attribute><![CDATA[answer_width]]></attribute>
    <value><![CDATA[]]></value>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <attribute><![CDATA[array_filter]]></attribute>
    <value><![CDATA[]]></value>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <attribute><![CDATA[array_filter_exclude]]></attribute>
    <value><![CDATA[]]></value>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <attribute><![CDATA[dropdown_prepostfix]]></attribute>
    <value><![CDATA[]]></value>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <attribute><![CDATA[dropdown_separators]]></attribute>
    <value><![CDATA[]]></value>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <attribute><![CDATA[dualscale_headerA]]></attribute>
    <value><![CDATA[Escala 1]]></value>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <attribute><![CDATA[dualscale_headerB]]></attribute>
    <value><![CDATA[Escala 2]]></value>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <attribute><![CDATA[dualscale_headerC]]></attribute>
    <value><![CDATA[Escala 3]]></value>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <attribute><![CDATA[hidden]]></attribute>
    <value><![CDATA[0]]></value>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <attribute><![CDATA[page_break]]></attribute>
    <value><![CDATA[0]]></value>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <attribute><![CDATA[public_statistics]]></attribute>
    <value><![CDATA[0]]></value>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <attribute><![CDATA[random_group]]></attribute>
    <value><![CDATA[]]></value>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <attribute><![CDATA[random_order]]></attribute>
    <value><![CDATA[0]]></value>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <attribute><![CDATA[scale_export]]></attribute>
    <value><![CDATA[0]]></value>
   </row>
   <row>
    <qid><![CDATA[5997]]></qid>
    <attribute><![CDATA[use_dropdown]]></attribute>
    <value><![CDATA[0]]></value>
   </row>
  </rows>
 </question_attributes>
</document>
[/code]

Is this possible? Adding the scale like this?
Thank You
Last Edit: 6 months 8 hours ago by hliboi.
The administrator has disabled public write access.

How to create Triple Scale Array 6 months 7 hours ago #103955

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4049
  • Thank you received: 739
  • Karma: 341
As pointed out in previous posts, you will need to create 3 separate array questions and then use CSS (and maybe JavaScript) to align them side-by-side.

The CSS and JS would depend entirely on the template being used.

Also note that things could get a little messy if you want the questions to be mandatory.

.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.177 seconds
Donation Image