Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Search Results (Searched for: survey title)
- baxterdmutt
-will I need to create the template for every question or is there a way to have the pdfReport run through all the questions.
- how can I can put the different group titles and group descriptions into the pdfReport template.
maybe the easiest for me is to hack the “export pdf” app to get it to show the base64 properly instead of the text of it. But I wouldn’t know where to look. I am doing this for our charity (Service dogs for Veterans and First Resppnders) we can’t afford to pay a developer. I’ll need to figure this out with whatever free help you guys are able to give.
- adilar39
Your LimeSurvey version: 5.6.19+230509
Own server or LimeSurvey hosting: Own
Survey theme/template: Fruity
==================
Hi everyone, I would like to ask some question.
I've seen how to make array heading with subheadings in this link:
forums.limesurvey.org/forum/design-issue...93-array-subheadings
But it looks like only adaptable to array only. I want to apply it on array (text). How can I do this?
And might as well, how to insert title in the first column? (red arrow in image attached)
Thanks in advance.
- BKilinc
The idea is that, when respondents are choosing an event-date (radiobuttons, making a single choice out of four possible event-dates), the chosen event-date will be automatically scheduled in Outlook after the respondent has submitted the survey. This purpetuates the idea that a link exists between LimeSurvey and Microsoft Outlook. But I'm not sure if this is currently possible with LimeSurvey. I've found similar topics/questions on this, spanning from 9-12 years ago. Therefore, I'm not entirely sure if the possibility for an integration between LimeSurvey and Outlook is still excluded or not.
Further clarity would be very appreciated.
- bdbp23
Your LimeSurvey version: 6.0.0+230405
Own server or LimeSurvey hosting: Own server, dev run in docker
Survey theme/template: vanilla
==================
I have a survey where among other things users upload an image.
I've built a custom plugin to hit a specific webhook with the survey answers for processing on submit, but am not sure how to automate exporting the images resources that get uploaded.
I've reviewed the methods available here .
When I look at the data for that question in getResponse() it looks like I'd have to rename the file located at upload/surveys/999999/files with a name and extension myself:
[{ "title":"","comment":"","size":"44.3056640625","name":"test-file.png","filename":"fu_r9f47ruw4z7t5aa","ext":"png" }]
Am I missing an existing method to cut down on that work?
- Joffm
wieso sprichst Du die ganze Zeit von 9 Fragen, wo nach den ersten drei etwas passieren soll.
Dabei ist es doch nur 1 Frage vom Typ "Matrix" mit 9 Teilfragen.
Da hätten wir lange aneinander vorbei diskutieren können.
Gut, es ist ja klar, dass Du in der Matrix nicht so einfach etwas dazwischenschieben kannst.
Aber Du kannst die Matrixfrage splitten, nach den ersten drei Teilfragen die Zusatzfrage anzeigen und dann den zweiten Teil der Matrix.
Diese drei Teile fügst Du dann optisch zusammen mit den css-Klassen "no-question" und "no-bottom"
Beispiele:
Hier die css-Klassen; diese kannst Du in der "custom.css" des erweiterten themes anfügen.
.no-question { border-top:0; } .no-question .question-title-container { display:none; } .no-question .question-valid-container { display:none; } .no-question .answer-container { padding-top: 0; padding-bottom: 0; } .no-bottom { border-bottom:0; margin-bottom:0; } .no-bottom .answer-container { padding-top: 0; padding-bottom: 0; } .no-question2 tr.ls-heading { display:none; }
Und dann noch die Beispiel-Umfrage
Viel Erfolg
Joffm
- rajesh.mca134
Lime Survey Version : LimeSurvey Community Edition Version 6.2.6+230904
and the issues is, Emails from Lime Survey is going as plain HTML as below sample received email.
<html>
<head>
<title></title>
</head>
<body>Dear rajesh, Recently we invited you to participate in a survey. We note that you have not yet completed the survey, and wish to remind you that the survey is still available should you wish to take part. The survey is titled: "NEW BESTCare LAB SYSTEM SURVEY"
<div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"><span style="color:#777777;"><span style="font-size:14px;"><span style="font-family:Georgia,serif;"><span style="line-height:107%">To detect LAB clients’ satisfaction (physician and nursing) after the expected launch of the new LIS BESTCare system.</span></span></span></span></div>
To participate, please click on the link below. Sincerely, Laboratory - Admin
- linuxhooligan
Your LimeSurvey version: Version 5.6.43+231030
Own server or LimeSurvey hosting: vps
Survey theme/template:
==================
I wanted to insert a donut chart using Chartjs.org into LS as per this tutorial: www.w3schools.com/js/tryit.asp?filename=tryai_chartjs_doughnut
I found this reference on the forum on how to wrap the js code with $(document)... so that the rendering is fired when the whole document is loaded here: forums.limesurvey.org/forum/can-i-do-thi...e-of-chartjs-library
Here is the code that I input in a Text Display field:
<script src=" cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.js ">
<script type="text/javascript">
$(document).on('ready pjax:scriptcomplete',function(){
var barColors = [
"rgba(0,0,255,1.0)",
"rgba(0,0,255,0.",
"rgba(0,0,255,0.6)",
"rgba(0,0,255,0.4)",
"rgba(0,0,255,0.2)",
];
new Chart("myChart", {
type: "pie",
data: {
labels: xValues,
datasets: [{
backgroundColor: barColors,
data: yValues
}]
},
options: {
title: {
display: true,
text: "World Wide Wine Production"
}
}
});
});
</script>
<div class="content">
<div class="wrapper" style="max-width: 800px; margin: auto"><canvas id="myChart"></canvas></div>
</div>
However, the chart doesn't render.
Does anyone have any suggestions or working examples of the use of Chratjs.org in LS 5.x?
Thanks.
- tpartner
<script type="text/javascript" data-author="Tony Partner"> $(document).on('ready pjax:scriptcomplete',function(){ // Identify the questions var qArrayID = '{QID}'; var qArray = $('#question'+qArrayID); var arrayLength = $('tr[id^="javatbd"]', qArray).length; var qUploads = qArray.nextAll('.upload-files:lt('+arrayLength+')'); // Add some classes qArray.addClass('array-with-uploads-question'); $(qUploads).addClass('hidden'); // Insert the "Upload" buttons $('tr[id^="javatbd"] .answer-item:last-child', qArray).each(function(i) { $('*', this).remove(); $(this).append('<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#upload-'+qArrayID+'-'+(i+1)+'" data-backdrop="static" data-keyboard="false">Anexar comprovante</button>'); }); // Loop through the upload questions $(qUploads).each(function(i) { // Create a modal $('body').append('<div class="modal upload-modal" id="upload-'+qArrayID+'-'+(i+1)+'" tabindex="-1" role="dialog">\ <div class="modal-dialog" role="document">\ <div class="modal-content">\ <div class="modal-header">\ <h5 class="modal-title">'+$('.ls-label-question', this).html()+'</h5>\ </div>\ <div class="modal-body">\ </div>\ <div class="modal-footer">\ <button type="button" class="btn btn-primary" data-bs-dismiss="modal">OK</button>\ </div>\ </div>\ </div>\ </div>'); // Move this question into the modal $('#upload-'+qArrayID+'-'+(i+1)+' .modal-body').append($(this)); $(this).removeClass('hidden'); }); // Interrupt the Next/Submit function (to put upload questions back in the form) $('#limesurvey').on('submit', function(e) { $('.upload-modal .upload-files').appendTo($('.group-container:eq(0)')).addClass('hidden'); }); }); </script>
- Falco68
Own server or LimeSurvey hosting: Own server
Survey theme/template: Own theme based on Fruity
==================
Hello,
I'm trying to modify the font size of the questions.
So in custom.css I added .question-title-container .question-text {font-size: 18px;}
But the size still remain in 11pt.
When I inspect the page there is a lot of <span>, and one like this <span style="font-size:11pt;">.
I find the source of this in the editor of the question, when I switch to the source view.
Somebody could tell me how to override this parameter from the editor ?
Thanks.
- mariussi
Your LimeSurvey version: LimeSurvey Community Edition Version 6.2.11+231007
Own server or LimeSurvey hosting: Self hosting
Survey theme/template: fruity_twentythree
Admin theme: sea green
PHP-Version: PHP Version 8.0.30
==================
I updatet from release 5.6.40 to 6.2.11+231007.
Now, when I go into one survey and click statistics the site does not load. When I right-click "statistics" and click "open in new tab" I get the following error:
PHP warning Uninitialized string offset 0 /var/www/limesurvey/application/views/admin/export/statistics_subviews/_question.php(820) 808 echo htmlspecialchars(implode(',',$_POST[$myfield2])); 809 } 810 echo " -->\n"; 811 812 echo '<div class="statistics-responses-label-group ls-space padding bottom-5 top-15 ls-flex-item">'; 813 //output checkbox and question/label text 814 echo "<input type='checkbox' name='summary[]' value='$myfield2'"; 815 816 //pre-check 817 if (isset($summary) && array_search($myfield2, $summary)!== FALSE) {echo " checked='checked'";} 818 819 //check if there is a dualscale_headerA/B 820 $dshresult = $dshresults[$key1][0]; 821 822 //get header 823 foreach($dshresult as $dshrow) 824 { 825 $dshrow=array_values($dshrow); 826 $dualscaleheadera = $dshrow[0]; 827 } 828 829 if(isset($dualscaleheadera) && $dualscaleheadera != "") 830 { 831 $labeltitle = $dualscaleheadera; 832 }
This problem only exist in one survey. The others are fine.
- Jmantysalo
- tpartner
My suggestion would be to load the accessibility content in a hidden text-display question in the first survey group and show it in a Bootstrap modal.
- getbootstrap.com/docs/5.0/components/modal/
In your TWIG file, add something like this, replacing "myQuestionCode" with the hidden text-display question code. It will insert the modal element and a button to open it.
<div style="padding: 15px;"> <!-- Button trigger modal --> <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#accessibilityModal"> Accessibility </button> <!-- Modal --> <div class="modal fade" id="accessibilityModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Accessibility</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> {{ processString('{myQuestionCode.question}') }} </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> </div> </div> </div> </div> </div>
- sifaan
Your LimeSurvey version: LimeSurvey Community Edition Version 6.2.6+230904
Own server or LimeSurvey hosting: Own Server
Survey theme/template: Default
==================
I am trying a multi-lingual survey (Simplified Chinese and Sinhala in addition to the base language English) for the first time - when I try to send the invitation emails, the following error appears:
Even if I try inviting a single respondent, the same error appears.Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your @, and the actions you performed just before this
All participants' language is [en] in the participant list, so it shouldn't even be trying the other email languages (the english email templates have been copied over to them just in case)
This is what is captured in the server error logs (5 error lines each time I try to send emails)
[Tue Sep 12 03:52:10.574268 2023] [:error] [pid 278107:tid 4014789469952] [client 123.231.109.37:53473] [client 123.231.109.37] ModSecurity: Warning. Pattern match "(?\\\bhttp/\\\\d|<(?:html|meta)\\\\b)" at ARGS:message_en. [file "/etc/modsecurity/mod_sec3_CRS/"] [line "108"] [id "921130"] [msg "HTTP Response Splitting Attack"] [data "Matched Data: <html found within ARGS:message_en: <html>\\x0d\\x0a<head>\\x0d\\x0a\\x09<title></title>\\x0d\\x0a</head>\\x0d\\x0a<body>\\x0d\\x0a<p>dear <strong>{firstname}</strong>,</p>\\x0d\\x0a\\x0d\\x0a<p>as part of the <strong>ocean lanka 360 feedback (2023 september)</strong>, you are\\xc2\\xa0invited to give feedback to <strong>{token:attribute_3}</strong>.</p>\\x0d\\x0a\\x0d\\x0a<p>it would be appreciated if you can complete the survey\\xc2\\xa0using the following link by <strong>6:30 pm (sri lanka time) on monday, "] [severity "CRITICAL"] [ver "OWASP_CRS/3.3.4"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "paranoia-level/1"] [tag "OWASP_CRS"] [tag "capec/1000/210/272/220/34"] [hostname ""] [uri "/"] [unique_id "ZQBC2hX4V30Ivq9vHnEF4QAAAAE"], referer:
[Tue Sep 12 03:52:10.574461 2023] [:error] [pid 278107:tid 4014789469952] [client 123.231.109.37:53473] [client 123.231.109.37] ModSecurity: Warning. Pattern match "(?\\\bhttp/\\\\d|<(?:html|meta)\\\\b)" at ARGS:message_zh-Hans. [file "/etc/modsecurity/mod_sec3_CRS/"] [line "108"] [id "921130"] [msg "HTTP Response Splitting Attack"] [data "Matched Data: <html found within ARGS:message_zh-Hans: <html>\\x0d\\x0a<head>\\x0d\\x0a\\x09<title></title>\\x0d\\x0a</head>\\x0d\\x0a<body>\\x0d\\x0a<p>dear <strong>{firstname}</strong>,</p>\\x0d\\x0a\\x0d\\x0a<p>as part of the <strong>ocean lanka 360 feedback 2023 september</strong>, you are\\xc2\\xa0invited to give feedback to <strong>{token:attribute_3}</strong>.</p>\\x0d\\x0a\\x0d\\x0a<p>it would be appreciated if you can complete the survey\\xc2\\xa0using the following link by <strong>6:30 pm (sri lanka time) on friday, ..."] [severity "CRITICAL"] [ver "OWASP_CRS/3.3.4"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "paranoia-level/1"] [tag "OWASP_CRS"] [tag "capec/1000/210/272/220/34"] [hostname ""] [uri "/"] [unique_id "ZQBC2hX4V30Ivq9vHnEF4QAAAAE"], referer:
[Tue Sep 12 03:52:10.574623 2023] [:error] [pid 278107:tid 4014789469952] [client 123.231.109.37:53473] [client 123.231.109.37] ModSecurity: Warning. Pattern match "(?\\\bhttp/\\\\d|<(?:html|meta)\\\\b)" at ARGS:message_si. [file "/etc/modsecurity/mod_sec3_CRS/"] [line "108"] [id "921130"] [msg "HTTP Response Splitting Attack"] [data "Matched Data: <html found within ARGS:message_si: <html>\\x0d\\x0a<head>\\x0d\\x0a\\x09<title></title>\\x0d\\x0a</head>\\x0d\\x0a<body>\\x0d\\x0a<p>dear <strong>{firstname}</strong>,</p>\\x0d\\x0a\\x0d\\x0a<p>as part of the <strong>ocean lanka 360 feedback 2023 september</strong>, you are\\xc2\\xa0invited to give feedback to <strong>{token:attribute_3}</strong>.</p>\\x0d\\x0a\\x0d\\x0a<p>it would be appreciated if you can complete the survey\\xc2\\xa0using the following link by <strong>6:30 pm (sri lanka time) on friday, 22nd ..."] [severity "CRITICAL"] [ver "OWASP_CRS/3.3.4"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "paranoia-level/1"] [tag "OWASP_CRS"] [tag "capec/1000/210/272/220/34"] [hostname ""] [uri "/"] [unique_id "ZQBC2hX4V30Ivq9vHnEF4QAAAAE"], referer:
[Tue Sep 12 03:52:10.586671 2023] [:error] [pid 278107:tid 4014789469952] [client 123.231.109.37:53473] [client 123.231.109.37] ModSecurity: Rule 3a75a65fe78 [id "942360"][file "/etc/modsecurity/mod_sec3_CRS/"][line "444"] - Execution error - PCRE limits exceeded (-: (null). [hostname ""] [uri "/"] [unique_id "ZQBC2hX4V30Ivq9vHnEF4QAAAAE"], referer:
[Tue Sep 12 03:52:10.589457 2023] [:error] [pid 278107:tid 4014789469952] [client 123.231.109.37:53473] [client 123.231.109.37] ModSecurity: Access denied with code 418 (phase 2). Operator GE matched 7 at TX:anomaly_score. [file "/etc/modsecurity/mod_sec3_CRS/"] [line "93"] [id "949110"] [msg "Inbound Anomaly Score Exceeded (Total Score: 15)"] [severity "CRITICAL"] [ver "OWASP_CRS/3.3.2"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-generic"] [hostname ""] [uri "/"] [unique_id "ZQBC2hX4V30Ivq9vHnEF4QAAAAE"], referer:
I have other surveys running on the same platform, all single language, and they send out emails/reminders without any issue
In reading through the error message, there is an "html found within ARGS:message" line, so I wonder if making the emails plain text might solve the issue for now (generally I have been sending HTML emails without an issue)
Any suggestions on how to resolve this will be much appreciated
Thank you
/Sifaan
- AntPIC
Versione 3.28.66
==================
I have
1. multi short text (nome e cognome)
1. short text with validation (email)
1. short text with validation (codice fiscale)
1. drop down
How Can I Allign and hide the borders?
I put this code in my custom.css
.no-question { border-top:transparent none; }
.no-question .question-title-container { display:none; }
.no-question .question-valid-container { display:none; }
.no-question .answer-container {
padding-top: 0em;
padding-bottom: 0em;
}
.no-bottom { border-bottom:transparent none;margin-bottom:0; }
.no-bottom .answer-container {
padding-bottom: 0em;
and another code
@media only screen and (min-width: 768px) {
.inline-answers-question .question-title-container.col-xs-12,
.inline-answers-question .question-valid-container.col-xs-12,
.inline-answers-question .answer-container.col-xs-12 {
width: auto;
}
.inline-answers-question .question-valid-container,
.inline-answers-question .answer-container {
padding-top: 1em;
}
.inline-answers-question .answer-container > div {
padding-top: 0;
}
.inline-answers-question .answer-container .ls-answers {
padding-top: 0;
}
.inline-answers-question .answer-container .answer-item {
display: block;
float: left;
clear: none;
margin-bottom: 0;
}
}
- tpartner
Placing something like this in your layout_errors.twig file results in the screenshot below.
(of course, you may want to extend it for different languages)
{{ registerTemplateCssFile('css/errors.css') }} {% set aError = aSurveyInfo.aError %} {% set customContent = false %} {% if aError.type == 'survey-notstart' %} {% set customContent = true %} {% endif %} <!DOCTYPE html> <html lang="{{ aSurveyInfo.languagecode }}" dir="{{ aSurveyInfo.dir }}" class="{{ aSurveyInfo.languagecode }} dir-{{ aSurveyInfo.dir }} {{ aSurveyInfo.class.html }}" {{ aSurveyInfo.attr.html }}> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title> {% if customContent == true %} My custom title. {% elseif aError.error %} {{ aError.error }} {% else %} Error {{ aSurveyInfo.surveyls_title }} {% endif %} </title> <meta name="generator" content="LimeSurvey http://www.limesurvey.org" /> {% if(imageSrc('./files/favicon.ico')) %} <link rel="shortcut icon" href="{{ imageSrc('./files/favicon.ico') }}" /> {% endif %} </head> <body class="{{ aSurveyInfo.class.body }} lang-{{aSurveyInfo.languagecode}} {{surveyformat}}" marginwidth="0" marginheight="0" {{ aSurveyInfo.attr.body }}> <article id="block_error"> <div> {% if aError.error %} <h1>{{ aError.error }}</h1> {% endif %} {% if customContent == true %} <h2>My custom error header</h2> <p> Oops, it looks like you have already completed this survey. </p> <p> <a href='https://google.com'>Please click here to select another survey.</a> </p> {% else %} <h2>{{ aError.title }}</h2> <p> {{ aError.message }} </p> <p> {% if aError.contact %} {{ aError.contact }} {% else %} {{gT("For further information please contact %s:")|format (aSurveyInfo.admin)}} {% if aSurveyInfo.adminemail %} <br> <a href='mailto:{{ aSurveyInfo.adminemail }}'>{{ aSurveyInfo.adminemail }}</a> {% endif %} {% endif %} </p> {% endif %} </div> {% if aError.trace is not empty %} <pre> {{ aError.trace }} </pre> {% endif %} <div> </div> </article> {% block footer %} {{ include('./subviews/footer/footer.twig') }} {% endblock %} </body> </html>