- Posts: 5
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Is there a template for that?
- redasturu
- Topic Author
- Offline
- New Member
Less
More
3 years 1 month ago - 3 years 1 month ago #213200
by redasturu
Is there a template for that? was created by redasturu
Hello, I was browsing everywhere, but could not find the answer to my issue. I wonder if there already is a template to fill my needs or do I need to create a custom one. I have attached a table with contents and I need the respondent to choose between answer A or B in each line. How could I make that work? If I need to create my own custom template, how can I do that? Thanks in advance!
Attachments:
Last edit: 3 years 1 month ago by redasturu. Reason: typo
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 1 month ago - 3 years 1 month ago #213230
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Is there a template for that?
So this is a normal array with subquestions and two answer options "A" and "B"
Unfortunately you did not show the header. How does the respondent know what the numbers mean and his choice of "A" and "B"?
But nevertheless.
You may style the subquestions as a table with three (or four, if the increment number is really necessary) columns.
Here an example (three months ago here in the forum)
[url] forums.limesurvey.org/forum/can-i-do-thi...n-last-column#208942 [/url]
And a similar one here (german, but with a header of the subquestions)
[url] forums.limesurvey.org/forum/german-forum...n-matrixfrage#211355 [/url]
Joffm
In your example the numbers are "structured.
1st column constant "80"
2nd column increment of 2 starting at 82
3rd column increment of 5 starting at 5
So where do the numbers come from?
Are they predefined? Are the calculated from some other answers to previous questions?
Unfortunately you did not show the header. How does the respondent know what the numbers mean and his choice of "A" and "B"?
But nevertheless.
You may style the subquestions as a table with three (or four, if the increment number is really necessary) columns.
Here an example (three months ago here in the forum)
[url] forums.limesurvey.org/forum/can-i-do-thi...n-last-column#208942 [/url]
And a similar one here (german, but with a header of the subquestions)
[url] forums.limesurvey.org/forum/german-forum...n-matrixfrage#211355 [/url]
Joffm
In your example the numbers are "structured.
1st column constant "80"
2nd column increment of 2 starting at 82
3rd column increment of 5 starting at 5
So where do the numbers come from?
Are they predefined? Are the calculated from some other answers to previous questions?
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 1 month ago by Joffm.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 1 month ago #213231
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Is there a template for that?
Here an example adapted to your image
I used this javascript and css to add the header and style the table
And this as subquestion text (for each subquestion)
I used this subquestion text
Joffm
I used this javascript and css to add the header and style the table
Code:
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ var newText = '<div style="display:inline"><table><tr style="font-size:10pt"><td class="td-0">#</td><td class="td-1">number 1</td><td class="td-1">number 2</td><td class="td-1">number 3</td></tr></table> </div>'; $('#question{QID} table.subquestion-list tr.ls-heading td:first-child').addClass('sub-question-header').html(newText); }); </script>
Code:
<style type="text/css">table { width:100%; color:black; } .td-0 { text-align:left !important; padding-left:2%; border:1px solid darkgray; /* In case you'd like a border */ width:20% !important; } .td-1 { border:1px solid darkgray; /* In case you'd like a border */ width:20% !important; }} </style>
And this as subquestion text (for each subquestion)
Code:
<div style="display:inline"><table><tr style="font-size:10pt"><td class="td-0">1</td><td class="td-1">80</td><td class="td-1">82</td><td class="td-1">5</td></tr></table>
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, holch
The topic has been locked.
- redasturu
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
3 years 1 month ago #213280
by redasturu
Replied by redasturu on topic Is there a template for that?
Here is a full screenshot of the table I need to make. Could you please further explain where should the code be pasted in order to make this table in Limesurvey. I'm brand new at this and have little experience making surveys. I am using a mac computer. Thank You!
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 1 month ago #213281
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Is there a template for that?
In both links I provided there are sample surveys.
Did you download and import them?
And as a novice you really should read the manual.
At least the part about question types and Expression Manager (now called ExpressionScript)
And this:
[url] manual.limesurvey.org/Workarounds:_Manip...tc..29_in_LimeSurvey [/url]
Joffm
Did you download and import them?
And as a novice you really should read the manual.
At least the part about question types and Expression Manager (now called ExpressionScript)
And this:
[url] manual.limesurvey.org/Workarounds:_Manip...tc..29_in_LimeSurvey [/url]
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: redasturu
The topic has been locked.