Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Search Results (Searched for: multiple)

  • felixfelix
  • felixfelix's Avatar
21 Aug 2023 12:34 - 21 Aug 2023 16:27
Bonjour,

LimeSurvey Community Edition Version 6.2.2+230814

Je cherche à tester le fonctionnement de limesurvey dans le cadre de la création d'un questionnaire d'évaluation, type QCM.

Je n'arrive pas a créer une question à choix multiple, avec pour chaque réponse un score dédié a chaque réponse. La question doit enregistrer le total des points de chaque réponse. 


Voici un screenshot de ce que je souhaite tester. C'est fait avec odoo survey, je voudrai arriver au même comportement. Est-ce possible avec limesurvey.



Merci d'avance pour votre aide.
Félix
  • mcovents
  • mcovents's Avatar
21 Aug 2023 10:58
Hello,

I want to hide the number in a slider layout of a multiple numerical type question. (see attachment)
I found a solution for Limesurvey 3.x but this doesn't seem to work in the Limesurvey 5.6.27
forums.limesurvey.org/index.php/forum/de...slide-layout?start=0
Is there a solution for Limesurvey 5.x?
Theme: fruity
  • Joffm
  • Joffm's Avatar
18 Aug 2023 15:16
Hi,
there are really many, many examples here how to do this.
Like this. In the provided sample survey you find several examples
[url] forums.limesurvey.org/forum/can-i-do-thi...a-array-texts#189538 [/url]

Now, doing it like this you have to validate that there are no double "Elementos de despesa"

So in my opinion it is better to split the question
1. "multiple" question to select the elements
2. Either "multiple numerical input" or "array(text)" to enter the valores, using the array filter to only display the selected elementos 
Here both options. In the array you have the built-in option to show the sum.
 
The question is: What for do you need the sum?
Only to display it?
Or to use in in following questions to compare or limit some inputs?

Anyway: Use ExpressionManager to sum your values. 

And you should send a lss export of these questions, that we can imagine better, what you want to achieve.

Joffm
 
  • SolutionsNZ
  • SolutionsNZ's Avatar
16 Aug 2023 22:20 - 16 Aug 2023 23:40
Replied by SolutionsNZ on topic One codebase, multiple directories ... possible?
I'm wanting for surveys to be organised under different folders. so people can locate surveys relating to a different locations.

IE

Example.com/surveys/London
Example.com/surveys/London/engineer
Example.com/surveys/Paris

Etc

A redirect would work or I could use a some other software other than limesurvey to display all the URLs so people could look up the list of categories and directories.

There doesnt appear to be a url for Survey Groups... nor a way to list all the surveys by group on the home page
  • Procopii Smetanin
  • Procopii Smetanin's Avatar
16 Aug 2023 13:28
Replied by Procopii Smetanin on topic LDAP authorization
Here is my plugin AuthLDAP setup:

LDAP server: 
ldap://ad.moon.sp
Port number: 
389
LDAP version: 
LDAPv3
Select true if referrals must be followed (use false for ActiveDirectory): 
False
Enable Start-TLS: 
False
Select how to perform authentication.: 
Search and bind
Attribute to compare to the given login can be uid, cn, mail, ..: 
mail
Base DN for the user search operation. Multiple bases may be separated by a semicolon (;)
CN=limesurvey;CN=Users;DC=Moon;DC=sp
Optional extra LDAP filter to be ANDed to the basic (searchuserattribute=username) filter. Don't forget the outmost enclosing parentheses: 
None
Optional DN of the LDAP account used to search for the end-user's DN. An anonymous bind is performed if empty.: 
None
Password of the LDAP account used to search for the end-user's DN if previoulsy set.: 
Password of the limesurvey account
LDAP attribute of email address: 
None
LDAP attribute of full name: 
None
Check to make default authentication method: 
Yes
Automatically create user if it exists in LDAP server: 
Yes
Grant survey creation permission to automatically created users: 
Yes
Optional base DN for group restriction: 
None
Optional filter for group restriction: 
None
Allow initial user to login via LDAP: 
Yes

My server is MS Windows Server 2012 R2

But when logging in under credentials:
email address + domain account password, I get error:
Code:
500: Internal server error ldap_count_entries(): Argument #2 ($result) must be of type LDAP\Result, bool given An internal error occurred during the processing of your request by the web server.
  • transitionsreussies
  • transitionsreussies's Avatar
15 Aug 2023 21:05
Hello @Joffm,

I I wasn't aware of the difference between .lsq and .lss files. Next time I will send the correct format file. I know your time and knowledge are very valuable for the community. It wasn't my intention to waste your time. Please accept my apologies.

I tried the .lss you sent me and it works perfectly. It helps me understand how to elaborate the next questions in my survey. Thank you, sir!
  • holch
  • holch's Avatar
14 Aug 2023 23:33
Oh, so you think he is looking for a multitenant approach. Makes sense.

Regarding DNS: Yes, but at the end this could be a solution, having different subdomains redirecting to the same folder to mimic different installations. But of course, this doesn't help if multi tenant is what they want.
  • jelo
  • jelo's Avatar
14 Aug 2023 23:12

You could use DNS / htaccess to redirect requests to certain folders to the "central" folder. Not sure if I understood you right.
 
DNS can only be used for subdomains, not subdirectories.

I don't see any purpose to have different subdirectories rewritten to one installation. LimeSurvey is only able to serve one tenant.
One separate installation per tenant. There is no indication that this will be changed anytime soon.
 
  • holch
  • holch's Avatar
14 Aug 2023 18:29
You could use DNS / htaccess to redirect requests to certain folders to the "central" folder. Not sure if I understood you right.

What would be the advantage of having several folders for the surveys?
  • Oterito
  • Oterito's Avatar
14 Aug 2023 16:30
I used this in a 3.28.66 version of limesurvey and it worked: In version 2.5x, there are pseudo-elements inserted for the check-boxes and you can't reliably use JavaScript to apply styles to a pseudo-element.

The simplest approach is to apply classes to the row elements and target the pseudo-elements in those rows with CSS. You should also remove the check-boxes in those rows in case someone tabs through the question.

1) Add something like this to the question source:
CODE:
<script type="text/javascript" charset="utf-8">

$(document).ready(function() {
// First Row
$('#question{QID} .question-item:eq(0)').parent().addClass('sub-header');
$('#question{QID} .question-item:eq(0)').find('input').remove();
// Sixth Row
$('#question{QID} .question-item:eq(5)').parent().addClass('sub-header');
$('#question{QID} .question-item:eq(5)').find('input').remove();
// Tenth Row
$('#question{QID} .question-item:eq(11)').parent().addClass('sub-header');
$('#question{QID} .question-item:eq(11)').find('input').remove();
});
</script>

2) Add something like this to the end of template.css:
CODE:
.multiple-opt .sub-header .question-item {
padding-left: 0;
}

.multiple-opt .sub-header .label-text {
margin-left: 0;
font-weight: bold;
}

.multiple-opt .sub-header .checkbox label::before {
display: none;
}

(I found it in this post: forums.limesurvey.org/index.php/forum/de...les-for-subquestions )

But is not working in version 5.6.31.

May be this code for this version and put condicional on the subquestion?
  • Oterito
  • Oterito's Avatar
14 Aug 2023 16:20

Hi,
to insert subheaders you shouldn't use a subquestion and then remove things.
Better you insert a text as a new subheader.
 
Code:
<script type="text/javascript" charset="utf-8">
    $(document).ready(function() {
        var SubHeading1="Subtitle 1";
        var SubHeading2="Subtitle 2";
        var thisQuestion = $('#question{QID}');
         // Insert sub-headings
        $('.checkbox-text-item:eq(0)', thisQuestion).before('<li class="inserted-sub-heading"><span class="myHeader">'+SubHeading1+'</span></li>');
        $('.checkbox-text-item:eq(4)', thisQuestion).before('<li class="inserted-sub-heading"><span class="myHeader">'+SubHeading2+'</span></li>');
    });
</script>


I used a class "myHeader" to easily style it.
Code:
<style type="text/css">
  .myHeader {
    color:maroon;
    font-size:120%;
    margin-left: 25px;
  }
</style>



 

Any way to do it condicional depending on if an option on a previous multiple choice question is selected?
  • Oterito
  • Oterito's Avatar
14 Aug 2023 15:27
Sorry. Desesperation. Maybe it gave me some idea to work on. But I don't have the knowledge about Javascript.
  • SolutionsNZ
  • SolutionsNZ's Avatar
14 Aug 2023 02:53
Is possible to run limesurvey using one codebase, but across multiple directories?

For example: install Limesurvey at example.com/survey... But then have completely folders which dynamically operate as if they have an install in every folder ie example.com/Survey1 or example.com/Folder2/Survey2 that all just operate from one codebase. (Instead of having to have example.com/survey/Survey1).


This is to save on having and maintaining multiple installs of the same codebase.
 
  • tpartner
  • tpartner's Avatar
12 Aug 2023 00:46

I tried generate some code with chat gpt but it didn't work.

Seriously????
Displaying 616 - 630 out of 761 results.

Lime-years ahead

Online-surveys for every purse and purpose