Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
How to create a question with the option to add another line?
- Mazi
- Offline
- Official LimeSurvey Partner
There it is: manual.limesurvey.org/Workarounds:_Manip...ble_Text.29_questionholch wrote: There was a workaround of Tpartner somewhere that actually had the option of "adding" an additional answer option by clicking on a button, if I remember right. But this was quite a while ago. You would have to search the workaround section and the forum to see if you can find it.
Demo: www.partnersinc.biz/surveys//index.php?s...32&newtest=Y&lang=en
But you may have to adjust this depending on which template you are using.
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
- DOwen
- Topic Author
- Offline
- Senior Member
- Posts: 68
- Thank you received: 0
- Mazi
- Offline
- Official LimeSurvey Partner
Since the JavaScript code depends on the HTML structure and thus on the template, that is probably the reason this is not working.DOwen wrote: I've tried this with array questions to test it (as well as other question types) but cannot get it to work. Whether I put the scipt inside the .JS file or the question/group description
Please post a link to an activated test survey so we can have a look. It may be easy to fix if it is just a typo or a different class name within the HTML structure but if the template structure is completely different, you may need some professional help to adjust everything (feel free to ping me at marcel.minke@limesurvey.org).
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
- DOwen
- Topic Author
- Offline
- Senior Member
- Posts: 68
- Thank you received: 0
Here's a link to the activated test survey: Test Survey
I have moved the Array question to the beginning, ignore the rest of the survey. It seems that even the plus and minus buttons are no longer appearing now.
Thank you!
- tammo
- Offline
- Official LimeSurvey Partner
- Posts: 967
- Thank you received: 220
Not Found
The requested URL /index.php/224571 was not found on this server.
Did you activate the survey?
Tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
- DOwen
- Topic Author
- Offline
- Senior Member
- Posts: 68
- Thank you received: 0
Also, the plus and minus buttons mysteriously appeared. However they do not bring up new array text fields.
Thanks!
- DOwen
- Topic Author
- Offline
- Senior Member
- Posts: 68
- Thank you received: 0
The survey should now be public so you can check it out. (May take 10 mins as of this email)
Link here
Thanks!
- Ben_V
- Offline
- Platinum Member
- Posts: 1128
- Thank you received: 329
Remember that you can style this question with CSS and/or javascript
Try-it, pasting the following code in the help area of the question....
<script type="text/javascript"> $(document).ready(function() { $( "<style type='text/css'>" + "#question{QID} { border:none; font-size:120%}" +"</style>").appendTo( "head" ); }); </script>
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
- Mazi
- Offline
- Official LimeSurvey Partner
Though there are no JavaScript errors the structure of your survey HTML seems to differ so the JavaScript can't access the needed elements.DOwen wrote: The survey should now be public so you can check it out. (May take 10 mins as of this email)
Check the JS and compare the elements it deals with step by step. I assume due to different HTML elements the script doesn't trigger the correct elements.
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
- holch
- Offline
- LimeSurvey Community Team
- Posts: 11658
- Thank you received: 2742
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
- DOwen
- Topic Author
- Offline
- Senior Member
- Posts: 68
- Thank you received: 0
However just tried it out but can't seem to get it working; no '+' symbols are showing...
- DOwen
- Topic Author
- Offline
- Senior Member
- Posts: 68
- Thank you received: 0
Mazi wrote:
Though there are no JavaScript errors the structure of your survey HTML seems to differ so the JavaScript can't access the needed elements.DOwen wrote: The survey should now be public so you can check it out. (May take 10 mins as of this email)
Check the JS and compare the elements it deals with step by step. I assume due to different HTML elements the script doesn't trigger the correct elements.
Just tried to see if I could pick out any issues with the HTML vs the JS, but struggling. Javascript is not my best skill unfortunately!