Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Search Results (Searched for: n/a)
- DenisChenu
31 Jan 2024 10:45
Replied by DenisChenu on topic Two installations - one private one public
OK,
Still : How you disable access to authenticatoion via DB password ?
Quick (and dirty) way :
1. remove/rename : github.com/LimeSurvey/LimeSurvey/blob/ma...n/Authentication.php
2. remove/rename github.com/LimeSurvey/LimeSurvey/blob/ma...in/RemoteControl.php
Best way : send a 401 with your nginx/apache config according to URL (depend of your server: can not answer here).
Still : How you disable access to authenticatoion via DB password ?
Quick (and dirty) way :
1. remove/rename : github.com/LimeSurvey/LimeSurvey/blob/ma...n/Authentication.php
2. remove/rename github.com/LimeSurvey/LimeSurvey/blob/ma...in/RemoteControl.php
Best way : send a 401 with your nginx/apache config according to URL (depend of your server: can not answer here).
- tpartner
30 Jan 2024 20:46
Replied by tpartner on topic Adding NA option in slider questions
If you want explicit N/A selections, you can do this...
1) Add a multiple-choice question after the slider question with the same sub-questions and codes.
2) In the slider question, set array filter exclusion to that new question code.
3) In the slider question, set array filter style to "Disabled".
4) Add this little script to the source of the slider question. It will move the check-boxes into that question.
Sample survey attached:
1) Add a multiple-choice question after the slider question with the same sub-questions and codes.
2) In the slider question, set array filter exclusion to that new question code.
3) In the slider question, set array filter style to "Disabled".
4) Add this little script to the source of the slider question. It will move the check-boxes into that question.
Code:
<script type="text/javascript" data-author="Tony Partner"> $(document).on('ready pjax:scriptcomplete',function(){ // Identify this question var thisQuestion = $('#question{QID}'); var filterQuestion = $(thisQuestion).nextAll('.multiple-opt:eq(0)'); // Hide the filter question $(filterQuestion).hide(); // Move the checkbox rows $('li.answer-item.numeric-item', thisQuestion).each(function(i) { $(this).after($('li.answer-item:eq(0)', filterQuestion)); }); // Some clean-up styles $('li.numeric-item', thisQuestion).css({ 'margin-bottom': 0, 'min-height': 0 }) $('li.checkbox-item *', thisQuestion).removeClass('col-auto'); $('li.checkbox-item', thisQuestion).removeClass('mb-1').css({ 'margin-bottom': '50px', 'text-align': 'center' }) }); </script>
Sample survey attached:
- frosch
29 Jan 2024 16:20
Login Adminbereich - Seite scrollt was created by frosch
Bitte helfen Sie uns, Ihnen zu helfen und füllen Sie folgende Felder aus:
Ihre LimeSurvey-Version: 6.4.3
Eigener Server oder LimeSurvey-Cloud: eigener Server
Genutzte Designvorlage: custom
==================
Hi,
wie hier zu sehen scrollt die Seite nach unten. Der dunkle linke Bereich hat nach unten einen Abstand. Da scheint was falsch zu sein:
demo.limesurvey.org/index.php?r=admin/authentication/sa/login
Bei meiner Installation ist das genauso.
Ihre LimeSurvey-Version: 6.4.3
Eigener Server oder LimeSurvey-Cloud: eigener Server
Genutzte Designvorlage: custom
==================
Hi,
wie hier zu sehen scrollt die Seite nach unten. Der dunkle linke Bereich hat nach unten einen Abstand. Da scheint was falsch zu sein:
demo.limesurvey.org/index.php?r=admin/authentication/sa/login
Bei meiner Installation ist das genauso.
- Lemmy
29 Jan 2024 08:52
Replied by Lemmy on topic Limesurvey does not continue after Creat survey
OK, situation at login screen (before pressing login button) :
Uncaught TypeError: c is null
setLang http://localhost/assets/packages/ckeditor/ckeditor.js:268
<anonymous> http://localhost/assets/packages/ckeditor/ckeditor.js:1802
<anonymous> http://localhost/assets/packages/ckeditor/ckeditor.js:1802
<anonymous> http://localhost/assets/packages/ckeditor/ckeditor.js:1913
after pressing login:
error: GET[url]http://localhost/index.php/admin[/url] [HTTP/1.1 500 Internal Server Error 79ms] GET schemehttphostlocalhostfilename/index.php/admin Address127.0.0.1:80Status500Internal Server ErrorVersionHTTP/1.1Transferred47.64 kB (47.18 kB size)Referrer Policystrict-origin-when-cross-originRequest PriorityHighestDNS ResolutionSystem
Error 2 : GET http://localhost/favicon.ico [HTTP/1.1 404 Not Found 0ms]GEThttp://localhost/favicon.icoStatus404Not FoundVersionHTTP/1.1Transferred271 B (271 B size)Referrer Policystrict-origin-when-cross-originDNS ResolutionSystem
Uncaught TypeError: c is null
setLang http://localhost/assets/packages/ckeditor/ckeditor.js:268
<anonymous> http://localhost/assets/packages/ckeditor/ckeditor.js:1802
<anonymous> http://localhost/assets/packages/ckeditor/ckeditor.js:1802
<anonymous> http://localhost/assets/packages/ckeditor/ckeditor.js:1913
after pressing login:
error: GET[url]http://localhost/index.php/admin[/url] [HTTP/1.1 500 Internal Server Error 79ms] GET schemehttphostlocalhostfilename/index.php/admin Address127.0.0.1:80Status500Internal Server ErrorVersionHTTP/1.1Transferred47.64 kB (47.18 kB size)Referrer Policystrict-origin-when-cross-originRequest PriorityHighestDNS ResolutionSystem
Error 2 : GET http://localhost/favicon.ico [HTTP/1.1 404 Not Found 0ms]GEThttp://localhost/favicon.icoStatus404Not FoundVersionHTTP/1.1Transferred271 B (271 B size)Referrer Policystrict-origin-when-cross-originDNS ResolutionSystem
- DenisChenu
18 Jan 2024 10:06
in the question theme directly too.
Replied by DenisChenu on topic Searchable dropdown other's choice can't be set to mandatory
Maybe need to add gitlab.com/SondagesPro/coreAndTools/Boot...ey.js?ref_type=headsYeah, the bootstrap-multiselect is interesting but it looks like a little work may be required for use in 6.x - davidstutz.github.io/bootstrap-multiselect/#migration .
in the question theme directly too.
- holch
12 Jan 2024 16:17 - 12 Jan 2024 16:25
Replied by holch on topic Help materials for Version 6
Things are not totally different in LS6 compared to LS5 or LS3. The concepts are usually the same, there might be some minor details (especially when Javascript/CSS) is involved and the GUI of the back end might look slightly different. The rest is usually the same.
However, I am not 100% sure what your survey will look like, what types of questions you are using, etc.
But I can tell you already one thing:
This probably won't fly, at least not with a decent amount of adaption. If you randomize, you use "chance". The bigger the sample, the closer the probability of an even distribution. But it usually just gets close, it never is 100% equal. So, then you would have to get rid of "Chance" or at least help "chance" by creating something like a bucket least filled concept. To be honest, I think this is overkill. As long as the questions have been shown/answered fairly evenly, it should be fine. If you analyze something and one question has been shown 90 times and the other one 110 times, there should be no major difference to 100/100.
But to be able to help you, it would be great if you could provide is with a little mockup of your survey. It doesn't need to be complete and it doesn't need to show the actual questions, but it would help to understand better what you are trying to setup.
If we ignore the fact that you want to guarantee an absolute even distribution of each question (the issues of which I have explained above), this is actually not overly complicated, if I understood you right.
This would involve to create 6 question groups, 2 for each part. From now on, I will focus on the explanation for 1 part only, as for the others it is just the same. It doesn't matter if you have just 1 part or 10.000, things will follow the same idea.
So now you have 2 question groups, lets call them "names1" and "names2".
In the group "names1" you will put 11 questions for the names, in "names2" you will put the other 22 questions. Each of these 33 questions will receive the same code in the "randomization group name" field of each question.
What will this do? It will shuffle the 33 questions randomly over the 33 question positions within the 2 question groups. Now if this works fine, you just hide the group "names2" and there will always only be shown the question group "names1" with 11 random questions out of the pool of 33 questions.
You'll do the same for the 2 other parts (of course depending on the number of questions you have and what to show in each part).
So far, so good. Now you have 3 parts and in each part you will see a random selection of the whole pool of questions for this specific part.
What is missing? The randomization of the parts. That is easy as well. You'll give each question group that is shown (e.g. "names1", "behaviors1" and "graphs1") the same code in the field "randomization group name" in the respective question groups, and voila, now Limesurvey will show your question groups (or "parts" how you call them) in a random order.
Now the issue is that we depend on chance, and as we have seen before, depending on the sample size, this will most probably lead to a "relatively" even distribution of each question, but chances are very little that the distribution will be exactly even.
How to solve this?
Option 1. Get rid of this "illusional" requirement
Option 2. Manually adapt during the field time. You can have a look into the statistics and see how often a specific question has been seen / answered. If one is too far ahead, just give it a "0" in the "relevance equation"/condition field and it won't show up again. If you take out the zero, it will be in the shuffle again.
Option 3. create a complicated bucket least filled system based on the statistics functions from within Limesurvey. But this can be quite complicated with the number of options you have.
Option 4. Create fixed groups of questions for each part and show them randomly. E.g. create 3 groups per part and put 11 questions fixed into each of these question groups. This allows you to easier control the distribution. within the quesiton group you can still randomize the questions in terms of order. However, it will of course not be a perfect randomization either, as there are always 11 questions together.
I am sure, Joffm will have some ideas too.
However, I am not 100% sure what your survey will look like, what types of questions you are using, etc.
But I can tell you already one thing:
It's also important that each question in each part of the survey is answered an even amount of times, so that one question does not have more responses recorded than another.
This probably won't fly, at least not with a decent amount of adaption. If you randomize, you use "chance". The bigger the sample, the closer the probability of an even distribution. But it usually just gets close, it never is 100% equal. So, then you would have to get rid of "Chance" or at least help "chance" by creating something like a bucket least filled concept. To be honest, I think this is overkill. As long as the questions have been shown/answered fairly evenly, it should be fine. If you analyze something and one question has been shown 90 times and the other one 110 times, there should be no major difference to 100/100.
But to be able to help you, it would be great if you could provide is with a little mockup of your survey. It doesn't need to be complete and it doesn't need to show the actual questions, but it would help to understand better what you are trying to setup.
If we ignore the fact that you want to guarantee an absolute even distribution of each question (the issues of which I have explained above), this is actually not overly complicated, if I understood you right.
This would involve to create 6 question groups, 2 for each part. From now on, I will focus on the explanation for 1 part only, as for the others it is just the same. It doesn't matter if you have just 1 part or 10.000, things will follow the same idea.
So now you have 2 question groups, lets call them "names1" and "names2".
In the group "names1" you will put 11 questions for the names, in "names2" you will put the other 22 questions. Each of these 33 questions will receive the same code in the "randomization group name" field of each question.
What will this do? It will shuffle the 33 questions randomly over the 33 question positions within the 2 question groups. Now if this works fine, you just hide the group "names2" and there will always only be shown the question group "names1" with 11 random questions out of the pool of 33 questions.
You'll do the same for the 2 other parts (of course depending on the number of questions you have and what to show in each part).
So far, so good. Now you have 3 parts and in each part you will see a random selection of the whole pool of questions for this specific part.
What is missing? The randomization of the parts. That is easy as well. You'll give each question group that is shown (e.g. "names1", "behaviors1" and "graphs1") the same code in the field "randomization group name" in the respective question groups, and voila, now Limesurvey will show your question groups (or "parts" how you call them) in a random order.
Now the issue is that we depend on chance, and as we have seen before, depending on the sample size, this will most probably lead to a "relatively" even distribution of each question, but chances are very little that the distribution will be exactly even.
How to solve this?
Option 1. Get rid of this "illusional" requirement
Option 2. Manually adapt during the field time. You can have a look into the statistics and see how often a specific question has been seen / answered. If one is too far ahead, just give it a "0" in the "relevance equation"/condition field and it won't show up again. If you take out the zero, it will be in the shuffle again.
Option 3. create a complicated bucket least filled system based on the statistics functions from within Limesurvey. But this can be quite complicated with the number of options you have.
Option 4. Create fixed groups of questions for each part and show them randomly. E.g. create 3 groups per part and put 11 questions fixed into each of these question groups. This allows you to easier control the distribution. within the quesiton group you can still randomize the questions in terms of order. However, it will of course not be a perfect randomization either, as there are always 11 questions together.
I am sure, Joffm will have some ideas too.
- javieryw
05 Jan 2024 09:54
Installing Limesurvey on Webserver was created by javieryw
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.4.0
Own server or LimeSurvey hosting: Own Server
Survey theme/template: N/A
==================
Hi All,
I am encountering this issue:
PHP Fatal error: require_once(): Failed opening required '/app/limesurvey/application/config/internal.php' (include_path='/app/limesurvey/vendor/pear/console_getopt:/app/limesurvey/vendor/pear/pear_exception:/app/limesurvey/vendor/pear/pear-core-minimal/src:/app/limesurvey/vendor/pear/ole:/app/limesurvey/vendor/pear/spreadsheet_excel_writer:.:/usr/share/php') in /app/limesurvey/index.php on line 158
when I deploy the limesurvey tool on Kyma using postgresql db
following is my Dockerfile when I build the image and deploying through a yaml file# Use the postgres:16.1-bullseye base imageFROM debian:bullseye # Install PHP and other necessary packagesRUN apt-get update && \ apt-get install -y php php-pgsql && \ apt-get install -y php-gd && \ apt-get install -y php-intl && \ apt-get install -y php-simplexml && \ apt-get install -y php-zip && \ apt-get install -y php-imap && \ apt-get -y install php-ldap && \ apt install -y php-mbstring && \ apt-get install unzip && \ rm -rf /var/lib/apt/lists/* # Set workdirWORKDIR /app # Prepare limesurveyCOPY limesurvey*.zip /homeRUN mkdir /app/tmpRUN unzip /home/* -d /appRUN mkdir /tmp/tmpRUN mkdir /tmp/uploadRUN mkdir /tmp/configRUN cp -r /app/limesurvey/tmp /tmpRUN cp -r /app/limesurvey/upload /tmpRUN cp -r /app/limesurvey/application/config /tmpRUN chmod -R 755 /app/limesurvey/tmp; chown -R $(id -u):$(id -g) /app/limesurvey/tmpRUN chmod -R 755 /app/limesurvey/upload; chown -R $(id -u):$(id -g) /app/limesurvey/uploadRUN chmod -R 755 /app/limesurvey/application/config; chown -R $(id -u):$(id -g) /app/limesurvey/application/config # Expose the PHP server port (default is 80)EXPOSE 80
I have included chmod for the /app/limesurvey/application/config folder however I am still facing this error any advice?
Your LimeSurvey version: 6.4.0
Own server or LimeSurvey hosting: Own Server
Survey theme/template: N/A
==================
Hi All,
I am encountering this issue:
PHP Fatal error: require_once(): Failed opening required '/app/limesurvey/application/config/internal.php' (include_path='/app/limesurvey/vendor/pear/console_getopt:/app/limesurvey/vendor/pear/pear_exception:/app/limesurvey/vendor/pear/pear-core-minimal/src:/app/limesurvey/vendor/pear/ole:/app/limesurvey/vendor/pear/spreadsheet_excel_writer:.:/usr/share/php') in /app/limesurvey/index.php on line 158
when I deploy the limesurvey tool on Kyma using postgresql db
following is my Dockerfile when I build the image and deploying through a yaml file# Use the postgres:16.1-bullseye base imageFROM debian:bullseye # Install PHP and other necessary packagesRUN apt-get update && \ apt-get install -y php php-pgsql && \ apt-get install -y php-gd && \ apt-get install -y php-intl && \ apt-get install -y php-simplexml && \ apt-get install -y php-zip && \ apt-get install -y php-imap && \ apt-get -y install php-ldap && \ apt install -y php-mbstring && \ apt-get install unzip && \ rm -rf /var/lib/apt/lists/* # Set workdirWORKDIR /app # Prepare limesurveyCOPY limesurvey*.zip /homeRUN mkdir /app/tmpRUN unzip /home/* -d /appRUN mkdir /tmp/tmpRUN mkdir /tmp/uploadRUN mkdir /tmp/configRUN cp -r /app/limesurvey/tmp /tmpRUN cp -r /app/limesurvey/upload /tmpRUN cp -r /app/limesurvey/application/config /tmpRUN chmod -R 755 /app/limesurvey/tmp; chown -R $(id -u):$(id -g) /app/limesurvey/tmpRUN chmod -R 755 /app/limesurvey/upload; chown -R $(id -u):$(id -g) /app/limesurvey/uploadRUN chmod -R 755 /app/limesurvey/application/config; chown -R $(id -u):$(id -g) /app/limesurvey/application/config # Expose the PHP server port (default is 80)EXPOSE 80
I have included chmod for the /app/limesurvey/application/config folder however I am still facing this error any advice?
- teracomp
03 Jan 2024 21:01
Replied by teracomp on topic Computer number of non-N/A responses.
round(sum(HM1.value, HM2.value, HM3.value, HM4.value, HM5.value, HM6.value, HM7.value, HM8.value, HP1.value, HP2.value, HP3.value, HP4.value, HP5.value, HP6.value, HP7.value, HP8.value) / countifop(">", "0", HM1.value, HM2.value, HM3.value, HM4.value, HM5.value, HM6.value, HM7.value, HM8.value, HP1.value, HP2.value, HP3.value, HP4.value, HP5.value, HP6.value, HP7.value, HP8.value), 2)
Works perfectly! Thank you!
Works perfectly! Thank you!
- Joffm
03 Jan 2024 20:44
Replied by Joffm on topic Computer number of non-N/A responses.
And you know what you were doing?
First you do an addition
"a+b+c" with a result "d".
Then you use the sum-function to "sum(d)".
So one part is obsolet.
Joffm
First you do an addition
"a+b+c" with a result "d".
Then you use the sum-function to "sum(d)".
So one part is obsolet.
Joffm
- teracomp
03 Jan 2024 20:34
Replied by teracomp on topic Computer number of non-N/A responses.
Yikes! I've been using sum(a+b+c+...) forever!
- Joffm
03 Jan 2024 20:33
Replied by Joffm on topic Computer number of non-N/A responses.
I hope it was a typo.
It's sum(a,b,c,..)
not sum(a+b+c+...)
Joffm
It's sum(a,b,c,..)
not sum(a+b+c+...)
Joffm
- teracomp
03 Jan 2024 20:26
Replied by teracomp on topic Computer number of non-N/A responses.
Fantastic! Here's what I have for this question:
round(sum(HM1.value + HM2.value + HM3.value + HM4.value + HM5.value + HM6.value + HM7.value + HM8.value) / countifop(">", "0", HM1.value, HM2.value, HM3.value, HM4.value, HM5.value, HM6.value, HM7.value, HM8.value), 2)
I'll test to confirm.
round(sum(HM1.value + HM2.value + HM3.value + HM4.value + HM5.value + HM6.value + HM7.value + HM8.value) / countifop(">", "0", HM1.value, HM2.value, HM3.value, HM4.value, HM5.value, HM6.value, HM7.value, HM8.value), 2)
I'll test to confirm.
- Joffm
03 Jan 2024 20:08
Replied by Joffm on topic Computer number of non-N/A responses.
You can use
{countif("0",HM1.value, HM2.value,...)} to get the number of N/A,
or
{countifop(">","0",HM1.value,...)}
to get the number of "not N/A".
So at the end you will have somthing like
{round(sum(....) / countifop(...),2)}
Joffm
{countif("0",HM1.value, HM2.value,...)} to get the number of N/A,
or
{countifop(">","0",HM1.value,...)}
to get the number of "not N/A".
So at the end you will have somthing like
{round(sum(....) / countifop(...),2)}
Joffm
- teracomp
03 Jan 2024 19:46
Computer number of non-N/A responses. was created by teracomp
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Community Edition Version 6.4.0+231218
Own server or LimeSurvey hosting: Own Server
Survey theme/template: Custom theme based on Bootswatch
==================
I have a number of computations within a survey that look like:
round(sum( HM1.value + HM2.value + HM3.value + HM4.value + HM5.value + HM6.value + HM7.value + HM8.value ) / 8, 2)
However, each of the questions (HM1...HM8) includes an answer option of N/A. The value for N/A = 0. The denominator needs to be a variable based on the number of non-zero responses. For example, if HM1.value == 0 and all of the other questions are non-zero, the denominator would be 7 (not .
I need to do this for ten (10) subscales that have 4 to 8 questions each.
Is is possible to create a variable for the denominator in the equation?
Many thanks!
dave
Your LimeSurvey version: LimeSurvey Community Edition Version 6.4.0+231218
Own server or LimeSurvey hosting: Own Server
Survey theme/template: Custom theme based on Bootswatch
==================
I have a number of computations within a survey that look like:
round(sum( HM1.value + HM2.value + HM3.value + HM4.value + HM5.value + HM6.value + HM7.value + HM8.value ) / 8, 2)
However, each of the questions (HM1...HM8) includes an answer option of N/A. The value for N/A = 0. The denominator needs to be a variable based on the number of non-zero responses. For example, if HM1.value == 0 and all of the other questions are non-zero, the denominator would be 7 (not .
I need to do this for ten (10) subscales that have 4 to 8 questions each.
Is is possible to create a variable for the denominator in the equation?
Many thanks!
dave
- cbfrek
03 Jan 2024 10:44
OAuth2 plugin infinite authentication loop was created by cbfrek
Your LimeSurvey version: 6.4.0+231218
Own server or LimeSurvey hosting: own server IIS 10 + PHP 8.1.22.
Survey theme/template: Bootswatch
==================
I have installed this third party plugin github.com/BDSU/limesurvey-oauth2 after modifying the config.xml file in the zip file to add version 6.
Authentication is working (I get a token and LimeSurvey creates a session), but I get stuck into infinite loops between /index.php?r=admin/authentication/sa/login which redirects to OAuth server which redirects to survey-uat.cbre.fr/index.php?r=admin%2fa...n%2fsa%2flogin&code= ... which redirects to /index.php?r=admin which redirect to /index.php?r=admin/authentication/sa/login which redirect to OAuth server and so on...
I don't know what's causing the issue since the plugin code looks OK compared to native LDAP and Webserver plugins. If I block the redirection after newUserSession successful execution, I can dump the cookies and session variables and everything looks OK. I can even navigate manually to /index.php?r=surveyAdministration/listsurveys and I'm authenticated.
Do you have any idea about what could cause the issue?
I'm posting this here since the plugin does not seems actively developed and the issue may not be the plugin since the OAuth authentication is working.
By the way, it would be great to have native SAML and OAuth2in Limesurvey.
Own server or LimeSurvey hosting: own server IIS 10 + PHP 8.1.22.
Survey theme/template: Bootswatch
==================
I have installed this third party plugin github.com/BDSU/limesurvey-oauth2 after modifying the config.xml file in the zip file to add version 6.
Authentication is working (I get a token and LimeSurvey creates a session), but I get stuck into infinite loops between /index.php?r=admin/authentication/sa/login which redirects to OAuth server which redirects to survey-uat.cbre.fr/index.php?r=admin%2fa...n%2fsa%2flogin&code= ... which redirects to /index.php?r=admin which redirect to /index.php?r=admin/authentication/sa/login which redirect to OAuth server and so on...
I don't know what's causing the issue since the plugin code looks OK compared to native LDAP and Webserver plugins. If I block the redirection after newUserSession successful execution, I can dump the cookies and session variables and everything looks OK. I can even navigate manually to /index.php?r=surveyAdministration/listsurveys and I'm authenticated.
Do you have any idea about what could cause the issue?
I'm posting this here since the plugin does not seems actively developed and the issue may not be the plugin since the OAuth authentication is working.
By the way, it would be great to have native SAML and OAuth2in Limesurvey.