- Posts: 11
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Array with 3 Cols: 2 normal Cols and 1 Col (text)
- borste
- Topic Author
- Offline
- New Member
Less
More
7 years 4 months ago #143742
by borste
Array with 3 Cols: 2 normal Cols and 1 Col (text) was created by borste
Hi Experts,
for my survey I need a combination of two cols of normal array (or list-elements) and one col of text (as a commentary).
Can somebody help me?
Thank you.
borste
LimeSurvey
Version 2.52+160920
for my survey I need a combination of two cols of normal array (or list-elements) and one col of text (as a commentary).
Can somebody help me?
Thank you.
borste
LimeSurvey
Version 2.52+160920
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
7 years 4 months ago #143743
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Array with 3 Cols: 2 normal Cols and 1 Col (text)
You will need to insert a hidden multiple-short-text after the array and use JavaScript to move the text inputs up into the array. Here's a couple of posts for inspiration (searching the forum may lead to more):
- www.limesurvey.org/forum/design-issues/9...to-text-input#102550
- www.limesurvey.org/forum/can-i-do-this-w...-and-dropdown#120555
- www.limesurvey.org/forum/design-issues/9...to-text-input#102550
- www.limesurvey.org/forum/can-i-do-this-w...-and-dropdown#120555
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: borste
The topic has been locked.
- borste
- Topic Author
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
7 years 4 months ago #143842
by borste
Replied by borste on topic Array with 3 Cols: 2 normal Cols and 1 Col (text)
Hallo,
thanks for your suggestions.
As far as I understood I have to insert the scripts into the definition of the each question, is that right?
Or is there a way to insert the scripts in the templates?
Thanks
borste
thanks for your suggestions.
As far as I understood I have to insert the scripts into the definition of the each question, is that right?
Or is there a way to insert the scripts in the templates?
Thanks
borste
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12713
- Thank you received: 3924
7 years 4 months ago - 7 years 4 months ago #143845
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Array with 3 Cols: 2 normal Cols and 1 Col (text)
Hi, borste,
of course you can insert scripts into the template.
It's always the same procedure:
css you insert into the template.css
js you insert into the template.js
But sometimes it is mandatory to place the script into the specific question.
The only general answer is: you are able to insert it into the template.
When it is advisable depends on the circumstances.
And a different approach is:
create your own js script and in the startpage.pstpl call it after {TEMPLATEJS}
like:
Best regards
Joffm
of course you can insert scripts into the template.
It's always the same procedure:
css you insert into the template.css
js you insert into the template.js
But sometimes it is mandatory to place the script into the specific question.
The only general answer is: you are able to insert it into the template.
When it is advisable depends on the circumstances.
And a different approach is:
create your own js script and in the startpage.pstpl call it after {TEMPLATEJS}
like:
Code:
{TEMPLATEJS} <script type="text/javascript" src="{TEMPLATEURL}/my_script_folder/my_script.js"></script>
Best regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 years 4 months ago by Joffm. Reason: Typo
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
7 years 4 months ago #143849
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Array with 3 Cols: 2 normal Cols and 1 Col (text)
Note that targeting specific questions is more difficult from template.js or the .pstpl files - the {QID} placeholder does not work.
My approach, for ease of editing, is to place larger functions in template.js and call them from within the question source.
My approach, for ease of editing, is to place larger functions in template.js and call them from within the question source.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.