Welcome to the LimeSurvey Community Forum

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

Search Results (Searched for: multiple)

  • Joffm
  • Joffm's Avatar
19 Apr 2024 16:43
Replied by Joffm on topic validation of multiple numeric inputs
Hi, 
To achieve that sett the validation to
count(self)<2 or (count(self)==2 and Q1_SQ001<=Q1_SQ002)
with a validation tip like
{if(count(self)==2 and Q1_SQ001>Q1_SQ002,"Conclusione greater or equal sottoscrizione","")}

Furthermore you may force the four digits and at the same time a certain range of years by a regular expression like
/^(([1][9][5-9][0-9])|([2][0][01][0-9])|([2][0][2][0-4]))?$/
Here from 1950 - 2024

 

File Attachment:

File Name: limesurvey...5116.lss
File Size:17 KB


Joffm
  • AntPIC
  • AntPIC's Avatar
18 Apr 2024 13:41
Versione 3.28.76Hi, I'm looking for an expression for validating a multiple entry numeric response (attached).
The response is validated if:
1. both boxes are empty;
2. if at least one of the two is full with a maximum length of 4 numeric digits
These two work
But I would need to enter a third option:
3. i.e. if both are filled in then the first value inserted must be lower than the second.
Here is the expression I am using (the bold part works but the second one doesn't)(is_empty(D1a3_SQ001.NAOK) OR strlen(D1a3_SQ001.NAOK) == 4) AND (is_empty(D1a3_SQ002.NAOK) OR strlen(D1a3_SQ002.NAOK) == 4) OR (!is_empty(D1a3_SQ001.NAOK) AND !is_empty(D1a3_SQ002.NAOK) AND D1a3_SQ002>=D1a3_SQ001)how can I solve it
  • BBSR-SR5
  • BBSR-SR5's Avatar
17 Apr 2024 14:58 - 17 Apr 2024 15:10
Ich habe die Lösung selber gefunden. In dem fall aktiviert man einfach die Zufällig Antwortrotation und ergänzt folgenden Code im Fragefenster:
Code:
<script type="text/javascript" charset="utf-8">
 
$(document).on('ready pjax:scriptcomplete',function(){
 
// The number of answers to be fixed at the end of the list
var fixedAnswers = 1;
 
// Set this to "true" if you want "Other" to be fixed in the last position
var otherFixed = false;
 
// Identify this question
var qID = {QID};
 
// Find the number of answers
var ansCount = $('#question'+qID+' .answer-item').length;
if($('#question'+qID+' input[type="text"]').length > 0) {
ansCount = ansCount -1
}
console.log(ansCount);
 
// Place the last n answers created at the end of the list
var fixedIndex = fixedAnswers - 1;
for (var i=0; i<fixedAnswers; i++) {
var answer = $('input[id^="answer"][id$="X'+qID+(ansCount-fixedIndex)+'"]');
var answerItem = $(answer).closest('.answer-item');
var answersList = $(answer).closest('ul');
$(answersList).append(answerItem);
fixedIndex--;
}
 
// Handle "Other"
if(otherFixed == true &amp;&amp; $('#question'+qID+' input[type="text"]').length > 0) {
var otherAnswer = $('#question'+qID+' input[type="text"]');
var otherAnswerItem = $(otherAnswer ).closest('.answer-item');
var otherAnswersList = $(otherAnswer ).closest('ul');
$(otherAnswersList).append(otherAnswerItem);
}
});
</script>


Den Code habe ich aus dem manual hier btw: manual.limesurvey.org/Workarounds:_Manip...28radio.29_questions

Edit: Wichtiger Hinweis, der Code funktioniert nur wenn die Antwortoptionen mit Zahlen nummeriert sind.
1,2,3,4,5,6 geht
a,b,c,d,e,f geht nicht!
  • brais24
  • brais24's Avatar
16 Apr 2024 17:55
Prefill radio list was created by brais24
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.6.49
Own server or LimeSurvey hosting: Own
Survey theme/template: Vanilla
==================
Hi there, im trying to do something i think its easy, what i want is on my radio list, prefill one option or another based on a previos question, i attach the lss file.
 

File Attachment:

File Name: limesurvey...7995.lss
File Size:61 KB


And an image
 

I be able to do what i want with the multiple choice, but not in radio question, i need to have selected the option "Si" if on the first row of the first question you have as default value "Si", and Select "No" if you have "No" on the first row of the first question.

I use an ecuation question that you can see on the lss, can anyone help me to get this done? Thanks for the help.

Note: the first question is also prefilled with the attributes of the participants.
 
  • Joffm
  • Joffm's Avatar
16 Apr 2024 17:35
Exactly this.
We always recommend "group by group"

Several advantages.
If you put only one question into each group it's the look& feel of "question by question". This is what you wrote.

There are many javascript workarounds that merge several questions to look like one single question.

You still have the option to put more than one question into a group, like 
"How do you rate XYZ?"
And after a low rating there appears a follow-up question.
"Why did you... Please, explain"

Joffm 
  • PaulMRFGR
  • PaulMRFGR's Avatar
16 Apr 2024 14:56
Thanks Tony, the group-by-group format doesn't work because we have general questions which we would prefer to show one-by-one
  • tpartner
  • tpartner's Avatar
16 Apr 2024 14:09

...(we can't use the Group format because we need other questions in the survey to be shown individually)..
The best option is to use group-by-group. Of course, you can place a single question in a group.
  • PaulMRFGR
  • PaulMRFGR's Avatar
16 Apr 2024 13:49
 Your LimeSurvey version:  Version 3.27.6+210629
Own server or LimeSurvey hosting: Own Server
Survey theme/template: Own template
==================
Hey,

We have a question which needs to show multiple questions on one page (we can't use the Group format because we need other questions in the survey to be shown individually). A multiple free text question would be a good workaround but we would need some to be dropdowns.

Does anyone know how we would do this?

The survey has been attached with the example question which shows which questions need to be free text vs dropdown

Please provide the details of the first course you attended below:
  • Name of training/course. (FREE TEXT)
  • If training was developed by an in-house provider, please only state their job role (FREE TEXT - Ideally an option to put NA dropdown or free-text)
  • If training was developed by an external provider, please name the provider. (FREE TEXT - Ideally an option to put NA dropdown or free-text)
  • Was the training bespoke to your team? (DROPDOWN - Yes/ No/ Don’t know)
  • Was the training accredited? (DROPDOWN - Yes/No/Don’t know)
  • How long was the training course? E.g. half day/full day/ 6 days. (FREE TEXT)
  • How many of your staff have attended the training/course? (e.g. A single staff member, part of the team, full team) (FREE TEXT)
  • Roughly speaking, what was the key focus/content of the training course? (FREE TEXT)

     

    File Attachment:

    File Name: limesurvey...7119.lss
    File Size:24 KB
  • Joffm
  • Joffm's Avatar
15 Apr 2024 20:39
What are the "top 3" in a multiple question?
Or only 3 randomly selected from all selections?
For the second there are many examples in the forum, only using ExpressionScript with the idea:
1.
​​​​​​Create a string with symbols of the selected options like "BDEGI"
2. Create a random number from 1 to the length of this string.
3. Capture the letter at this position
4. Remove the letter from the string.
5. Start again at 2. now with the shorter string

Stop after you captured three letters.
Now you have your thrree randomly selected options 
Display the options that are represented by the letters with " conditions".

Search the forum for a more detailed description and a sample.
I am sure there is.

​​​​​​
  • Mazi
  • Mazi's Avatar
15 Apr 2024 12:46

I have a multiple choice question with comment, where I ask for the length of a tried treatment in months. One of the options is "no treatment tried" where the comment box, asking for the duration is redundant. I would like to get rid of that one specifically.
 
This can be done easily with the following plugin which allows to define which options should not have a comment box shown:  survey-consulting.com/product/multi-opti...e-limesurvey-plugin/
Demo:  plugins.mysurveyhosting.com/index.php/344631?newtest=Y&lang=en
  • Mazi
  • Mazi's Avatar
15 Apr 2024 12:44

I want to add the following question to my survey: 

Do you collaborate with other partys in the field of drug prevention? 

With the following answer options: 
Yes I always work with different partys, namely... (Comment box)
Yes I sometimes work with different partys namely... (Comment box)

Yes, I collabarate with other partys in different fields namely... (Comment box)
No, I do not (No comment box)
I don't know (No comment box) 

 
This can be done easily with the following plugin which allows to define which options should not have a comment box shown:  survey-consulting.com/product/multi-opti...e-limesurvey-plugin/
Demo:  plugins.mysurveyhosting.com/index.php/344631?newtest=Y&lang=en
  • rajkumar_dms
  • rajkumar_dms's Avatar
15 Apr 2024 08:17 - 15 Apr 2024 08:18
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.5
Own server or LimeSurvey hosting:Cloud
Survey theme/template:
==================
Hello Team,
Good day!
I would like create the random number on basis selected answer of previous question and then only top 3 will selected form that list

For example
I have a question Q1(Multiple choice) having answer option A,B,C,D,E,F,G,H,I AND i have selected option A,C,D,F,G,H,I, for another question Q2(Multiple choice) having same option as Q1 but i need to show the only top 3 option by randomly from Q1

 
  • GaëlUQAC
  • GaëlUQAC's Avatar
12 Apr 2024 21:08 - 17 Apr 2024 14:10
Answers Grayed Out was created by GaëlUQAC
After selecting an answer in a "multiple choice" type question, is it possible to gray out all the other answers while having the possibility to go back by deselecting.
  • Mazi
  • Mazi's Avatar
12 Apr 2024 14:51
Replied by Mazi on topic Multinumerical input problem
I think all you need to do is setting the "equals sum value" to 100 and the max value to 100 as well.
If 100 is entered for a certain item, this should work.
If you question has multiple items and is mandatory, add a note that participants have to enter 0 for the other items.
  • holch
  • holch's Avatar
11 Apr 2024 22:28
Replied by holch on topic Geschlossene Umfrage mit Token Dummys
Ich würde ja persönlich, wann immer es geht, individuelle Links generieren, sprich ein Token pro Teilnehmer. Geht nicht immer, kommt halt drauf an, wie die Leute die die Tokens verteilen sollen drauf sind. Aber ein Token pro Teilnehmer ist halt meiner Meinung nach insgesamt flexibler. Weil man z.B. bei einer längeren Umfrage "token/participant based response persistence" einschalten kann. Damit kann der Teilnehmer nach einem Abbruch mit Klick auf den Link wieder dort im Fragebogen einsteigen, wo er aufgehört hat. Das musst du natürlich ausschalten, wenn verschiedene Leute mit dem gleichen Token die Umfrage ausfüllen sollen.

Kann ich dann die ausgefüllten Umfragen nach Token sortieren und erkennen, wer aus welcher Gruppe stammt?

Ja, kannst du. Du hast dann halt mehrere Antworten mit dem gleichen Token in deinem Datensatz. Den kannst du dann nach dem Token sortieren / filtern. Aber das sind doch Sachen, die kann man doch ganz einfach mal ausprobieren und dann siehst du, wie das am Ende aussieht und ob es so für dich passt. Eine ganz kleine Umfrage erstellt, ein paar Dummy tokens, und dann die Umfrage mal aktiviert und ein paar Mal ausgefüllt. Und schon siehst du, was du erhalten wirst.

Wird für jeden abgeschlossenen Fragebogen ein Datensatz generiert oder wird der alte Datensatz pro Token immer wieder neu überschrieben?


Kommt immer auf die Einstellungen an. Du kannst "uses left" hochsetzen, dann kann der selbe Token X mal wieder verwendet werden. Allerdings kann dann eben auch eine Person mehr als einmal teilnehmen und du hast keine Kontrolle darüber. Je nach Umfragetyp kann die Gefahr grösser sein (jemand möchte das Ergebnis beeinflussen, z.B. bei einer Wahlumfrage) oder geringer sein (weil dein Fragebogen so lang und langweilig ist, dass sich das niemand ein zweites Mal antun will ... :-) ).

Wichtig ist, dass eben die "token/participant based response persistence NICHT an ist in deinem Fall. Sonst passiert folgendes: Person A fängt den Fragebogen an und hört mittendrin auf. Dann kommt Person B und will die Umfrage starten, steigt aber quasi dort ein, wo A aufgehört hat. Das willst du ja in deinem Fall nicht.

Im Prinzip findest du die meisten Antworten zu deinen Fragen hier im Handbuch:

manual.limesurvey.org/Participant_settin...response_persistence

Unter "nable token-based response persistence" und "Allow multiple responses or update responses with one token".

Du willst eben keine "token-based response persistence" und du willst NICHT, dass die Antworten upgedatet werden, sondern dass eine neue Antwort erstellt wird.

Sind Fragebögen mit gleichem Token in sich und gegen die anderen beiden Tokenmarkierungen auswertbar?


Auswertung macht man in einer Software die dafür gemacht ist. Limesurvey ist primär ein Tool zum Sammlung von Daten. Es gibt zwar den Statistik-Teil, der ist aber eher rudimentär und alles was über die absoluten Basics hinausgeht wird nicht wirklich funktionieren, oder nur sehr unpraktisch sein.

Aber, du kannst beim Export die Token mit exportieren:
manual.limesurvey.org/Exporting_results
Displaying 46 - 60 out of 747 results.

Lime-years ahead

Online-surveys for every purse and purpose