Check out the LimeSurvey source code on GitHub!

How to create Triple Scale Array

More
5 years 7 months ago #61185 by faizanakhtar
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

Please Log in to join the conversation.

More
5 years 7 months ago #61196 by tpartner
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.

Please Log in to join the conversation.

More
5 years 7 months ago #61197 by faizanakhtar
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.

Please Log in to join the conversation.

More
5 years 7 months ago #61204 by tpartner
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.

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #103897 by hliboi
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: 2 years 11 months ago by hliboi. Reason: adding

Please Log in to join the conversation.

More
2 years 11 months ago #103939 by hliboi
I tried to find a solution in the above link but couldnt find where can i customize the code of the template. Please help.

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #103943 by hliboi
[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: 2 years 11 months ago by hliboi.

Please Log in to join the conversation.

More
2 years 11 months ago #103955 by tpartner
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.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form