Welcome to the LimeSurvey Community Forum

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

Search Results (Searched for: random)

  • holch
  • holch's Avatar
04 May 2023 17:35 - 04 May 2023 17:39
Replied by holch on topic Was ist neu in Version 5
da scheint was auf der Website falsch gelaufen zu sein. Klick doch mal auf "Whats new in Limesurvey 6"... 

So, jetzt habe ich nochmal geklickt und jetzt erscheint auch dort die Info zu LS6 vs LS5, vorher war es noch "LS5 vs. LS3", vermutlich noch im Cache. Habe die info aber nicht gesichert und damit kann ich es dir auch nicht zukommen lassen.

In einem Inkognito-Fenster meines Browsers kam dann aber bei Whats new in LS5 wieder die richtige Info. Einfach mal ausprobieren. Zur Sicherheit, habe ich das mal hier gesichert:

New features in LimeSurvey 5 compared to version 3Most important new features 

  • Upload & Install your own question themes inside the administration
  • Field-based data encryption – this can be activated for survey participants and responses on a field-by-field case to store sensitive personal data securely
  • Many new functions for ExpressionScript (formerly ExpressionManager)
  • Introduction of user roles. You can now to assign a pre-defined set of permissions to new/existing users.
  • PHP 8 support (minimum PHP version was raised to 7.2.5).
  • User interface enhancements
Even more features in detailGlobal settings 
  • Global maintenance mode – put your surveys into maintenance mode if needed
  • Global user administration settings and admin creation email template now available
Plugins 
  • Plugins can now be given a priority
  • Ability to add static ExpressionScript functions by plugin
  • New plugin event to modify email text before sending
  • Ability to modify attachments in beforeTokenEmail plugin event
  • New event afterGenerateToken
  • New afterSurveyActivate & afterSurveyDeactivate plugin events
  • New event to send custom email if redirected after registration
  • Possible to install plugin via zip file upload
Survey participants 
  • New access code/token plugin to specify the exact format of the access code
Security 
  • Email SMTP passwords are now saved encrypted in database
  • Password strength rules can be configured using a plugin
  • Send out password reset links instead of random password
Survey themes 
  • Allow to upload and use custom fonts
  • New function to revert theme files to default
  • New twig function to get theme resource URL
  • ExpressionScript engine HTML can now be customized
  • Dropdown options can now be defined in theme configuration
  • Batch reset/uninstall survey themes
  • Configure if NoTables is active in the theme
  • Convert LS3 themes to new theme format automatically
ExpressionScript 
  • New functions statCount & statCountIf to count statistics data
  • New function floatval() to convert a number/text to float value
  • New placeholder to use the SEED value
  • New placeholder to access the question help text
  • New function to get the question text of multiple choice and array questions via questioncode.question
Export 
  • Configure a custom logo for queXML export
  • New setting for date format and question code in queXML export
  • Enhanced output of graphs in PDF statistics export
Permissions 
  • User role permissions – assign a role instead of individual permissions
  • Allow administration user to update script with enabled XSS filter
  • Allow insertion of videos with enabled XSS filter
  • New “Select all” choice when editing survey permissions
RemoteControl API 
  • Extend list_participants to allow advanced conditions
  • New getQuestionAttributes() function to get question attributes
System 
  • PHP 8 support and minimum PHP version was raised to 7.2.5.
  • Ability to also select InnoDB (vs MyIsam) as database engine for MySQL during installation
  • Allow custom modules to extend LS core controllers and their views
Survey groups 
  • New permission system for survey groups – assign individual permission for a certain group of surveys
Emails 
  • Invitation/reminder sending rate can now be configured
  • Possibility to add cc, bcc to any email
Question types/editing 
  • Configurable prefix for subquestion and answer options in personal settings
  • New placeholder setting for text & numeric questions
  • Save question settings as default question type values to speed up creation of similar questions
  • Usage of textarea for subquestion ExpressionScript
  • Show group relevance (if any) in question view
  • Share resources (uploaded images/files) between surveys
  • Lock organizer in the sidebar
  • Show warning when activating a survey that is already expired
  • Soft mandatory prompt – this reminds a participant to fill out a question but may still proceed without doing so
Question themes 
  • Possible to install question theme with zip file upload
  • Ability to disable a question theme


Finde das aber insgesamt schon etwas wenig für eine "Arbeit". Was ist denn das für eine Arbeit? Finde das Thema etwas sehr dünn.
  • Joffm
  • Joffm's Avatar
03 May 2023 18:15
Richtig, die Videos von Paul Borsdorf sind wirklich gut.
Hast Du denn auch meine Tutorials gelesen?
Vieles wird Dich nicht betreffen, aber sie vermitteln Ideen

Gut, zu Deinen zwei Themen:
Matrix und Folgefrage: Relevanzgleichung, neuerdings Condition genannt.

Länge und Format zerschießen:
Keine Ahnung, was Du machst.
Aber es klingt sehr danach, dass Du ein Design erstellen willst ohne an das Medium "Online-Befragung" zu denken.

Aber jetzt endlich "Butter bei die Fische".
Schicke einen lss Export aller Deiner Baustellen, dann kriegen wir das.
1-2 Stunden sind ja nicht viel.
Was glaubst Du, wie lange ich mich schon mit einigen Hilfesuchern beschäftigt habe.

Und dann trinken wir ein Bier zusammen.

Bis dann
Joffm 
  • esrold2020
  • esrold2020's Avatar
03 May 2023 17:38
Hallo, entschuldigt bitte zunächst einmal, dass ich diesen sehr oberflächlichen Hilferuf hier reingestellt habe und danke für eure zugewandten Antworten. Es war ein Moment der Verzweiflung, der mich übermannt hat :D

Es geht um Folgendes: Ich sitze im Rahmen meiner Bachelorarbeit an einem zweisprachigen, randomisierten Fragebogen und habe bisher keine Vorerfahrung mit LimeSurvey. Ich habe mir alles was ich bisher erstellen konnte, mühselig über youtube tutorials angeeignet. Allerdings komme ich an manchen Stellen einfach nicht weiter:

Beispielsweise verstehe ich nicht, wie ich bei einer Fragengruppe mit Matrixfragen die Fragen so kodieren kann, dass bei einer bestimmten Antwort eine Folgefrage erscheint. Ich habe dazu Beiträge im Forum gelesen und auch auf Youtube Videos gesehen aber immer wenn ich es probiere, funktioniert es einfach nicht.

Außerdem habe ich noch Fragen eingebettet, deren Antworten sowohl von der Mengenanzahl als auch von der Länge der Fragen mir das komplette Format zerschießen. (Auch als Matrixfragen)

Ich glaube wirklich, dass es mir helfen würde, wenn sich jemand, der sich mit der gesamten Materie gut auskennt, mal 1-2 Stunden Zeit für mich nimmt und sich erstens anschaut, was ich bisher gemacht habe (Ich bin wirklich schon relativ weit dafür, dass ich bei 0 angefangen habe aber weiß nicht, ob das überhaupt so geht, wie ich es gemacht habe) und mir mit einigen Problemen vielleicht weiterhelfen kann. Ich bin natürlich auch bereit etwas dafür zu zahlen.

Ich würde mich sehr freuen, falls sich eine Person dazu bereiterklären würde.
  • Joffm
  • Joffm's Avatar
03 May 2023 15:39 - 03 May 2023 15:41
As promised a sample survey.

In group "GPool" I created a question (Q0) of type array(text) with two columns (X & Y) and 17 rows (16 for the randomly chosen X- and Y-values, 1 for the constant Z-value)

In this question I inserted this script
Code:
<script type="text/javascript" charset="utf-8">
 
function shuffle(array) {
  var currentIndex = array.length, temporaryValue, randomIndex;
  // While there remain elements to shuffle...
  while (0 !== currentIndex) {
    // Pick a remaining element...
    randomIndex = Math.floor(Math.random() * currentIndex);
    currentIndex -= 1;
    // And swap it with the current element.
    temporaryValue = array[currentIndex];
    array[currentIndex] = array[randomIndex];
    array[randomIndex] = temporaryValue;
  }
  return array;
}
 
    $(document).on('ready pjax:scriptcomplete',function(){
// Fill the arrays
      var arrX = ["Adam", "Bert", "Carol", "Deborah", "Esther", "Frank", "George", "Henry", "Iris", "Jacob", "Ken", "Larry", "Michael", "Noemi", "Ottilie", "Paula" ];
      var arrY = ["Y1", "Y2", "Y3", "Y4", "Y5", "Y6", "Y7", "Y8", "Y9", "Y10", "Y11", "Y12", "Y13", "Y14", "Y15", "Y16" ];
      var arrZ = ["Z1", "Z2", "Z3", "Z4", "Z5", "Z6", "Z7", "Z8", "Z9", "Z10", "Z11", "Z12", "Z13", "Z14", "Z15", "Z16" ];
//Shuffle arrays X and Y
      arrX = shuffle(arrX);
      arrY = shuffle(arrY);
 
//Fill the LimeSurvey array
$('#question{QID} tr[id^="javatbd"]:eq(0)  input[type="text"]:eq(0)').val(arrX[0]);
$('#question{QID} tr[id^="javatbd"]:eq(1)  input[type="text"]:eq(0)').val(arrX[1]);
$('#question{QID} tr[id^="javatbd"]:eq(2)  input[type="text"]:eq(0)').val(arrX[2]);
$('#question{QID} tr[id^="javatbd"]:eq(3)  input[type="text"]:eq(0)').val(arrX[3]);
$('#question{QID} tr[id^="javatbd"]:eq(4)  input[type="text"]:eq(0)').val(arrX[4]);
$('#question{QID} tr[id^="javatbd"]:eq(5)  input[type="text"]:eq(0)').val(arrX[5]);
$('#question{QID} tr[id^="javatbd"]:eq(6)  input[type="text"]:eq(0)').val(arrX[6]);
$('#question{QID} tr[id^="javatbd"]:eq(7)  input[type="text"]:eq(0)').val(arrX[7]);
$('#question{QID} tr[id^="javatbd"]:eq(8)  input[type="text"]:eq(0)').val(arrX[8]);
$('#question{QID} tr[id^="javatbd"]:eq(9)  input[type="text"]:eq(0)').val(arrX[9]);
$('#question{QID} tr[id^="javatbd"]:eq(10)  input[type="text"]:eq(0)').val(arrX[10]);
$('#question{QID} tr[id^="javatbd"]:eq(11)  input[type="text"]:eq(0)').val(arrX[11]);
$('#question{QID} tr[id^="javatbd"]:eq(12)  input[type="text"]:eq(0)').val(arrX[12]);
$('#question{QID} tr[id^="javatbd"]:eq(13)  input[type="text"]:eq(0)').val(arrX[13]);
$('#question{QID} tr[id^="javatbd"]:eq(14)  input[type="text"]:eq(0)').val(arrX[14]);
$('#question{QID} tr[id^="javatbd"]:eq(15)  input[type="text"]:eq(0)').val(arrX[15]);
 
$('#question{QID} tr[id^="javatbd"]:eq(0)  input[type="text"]:eq(1)').val(arrY[0]);
$('#question{QID} tr[id^="javatbd"]:eq(1)  input[type="text"]:eq(1)').val(arrY[1]);
$('#question{QID} tr[id^="javatbd"]:eq(2)  input[type="text"]:eq(1)').val(arrY[2]);
$('#question{QID} tr[id^="javatbd"]:eq(3)  input[type="text"]:eq(1)').val(arrY[3]);
$('#question{QID} tr[id^="javatbd"]:eq(4)  input[type="text"]:eq(1)').val(arrY[4]);
$('#question{QID} tr[id^="javatbd"]:eq(5)  input[type="text"]:eq(1)').val(arrY[5]);
$('#question{QID} tr[id^="javatbd"]:eq(6)  input[type="text"]:eq(1)').val(arrY[6]);
$('#question{QID} tr[id^="javatbd"]:eq(7)  input[type="text"]:eq(1)').val(arrY[7]);
$('#question{QID} tr[id^="javatbd"]:eq(8)  input[type="text"]:eq(1)').val(arrY[8]);
$('#question{QID} tr[id^="javatbd"]:eq(9)  input[type="text"]:eq(1)').val(arrY[9]);
$('#question{QID} tr[id^="javatbd"]:eq(10)  input[type="text"]:eq(1)').val(arrY[10]);
$('#question{QID} tr[id^="javatbd"]:eq(11)  input[type="text"]:eq(1)').val(arrY[11]);
$('#question{QID} tr[id^="javatbd"]:eq(12)  input[type="text"]:eq(1)').val(arrY[12]);
$('#question{QID} tr[id^="javatbd"]:eq(13)  input[type="text"]:eq(1)').val(arrY[13]);
$('#question{QID} tr[id^="javatbd"]:eq(14)  input[type="text"]:eq(1)').val(arrY[14]);
$('#question{QID} tr[id^="javatbd"]:eq(15)  input[type="text"]:eq(1)').val(arrY[15]);
 
// Capture the SAVEDID
      var id={SAVEDID};
      id=(id-1) % 16;
// Fill the last field of the LimeSurvey array with the calculated index
     $('#question{QID} tr[id^="javatbd"]:eq(16)  input[type="text"]:eq(0)').val(arrZ[id]);
 
// Remove the slashes to hilde the question after test
//      $('#question{QID}').hide();
 
   });
</script>


You will get this
 

Now you pipe the values into your questions, like
{Q0_Y001_X001} dislikes members of the {Q0_Y001_X002} minority, although he has had little personal experience interacting with them. Moreover, he believes that they {Q0_Z001_X001}

{Q0_Y002_X001} dislikes members of the {Q0_Y002_X002} minority, although he has had little personal experience interacting with them. Moreover, he believes that they {Q0_Z001_X001}

and so on.


The lss
 

File Attachment:

File Name: limesurvey...2156.lss
File Size:75 KB


And remember: SAVEDID is only available in active surveys.

Generally I do not see any advantage of this cyclic selection (remember: drop-outs) over a simple selection by random number.

Joffm
Joffm


 
  • Joffm
  • Joffm's Avatar
03 May 2023 14:27
This is exactly what I showed.
As I don't know your exact phrases, all are only placeholders, e.g. X7 the seventh entry of list X.

Later I'll send an lss.
At the moment I answer from my smartphone.
  • Martin Jönsson
  • Martin Jönsson's Avatar
03 May 2023 13:10
Replied by Martin Jönsson on topic Customizing questions randomly and systematically
Yes, that's pretty close. Except that the variables are replaced by words and phrases in three separate lists

So instead of

“X13 dislikes members of the y7 minority, although he has had little personal experience with them. Moreover, he believes that they Z5”

It will be

“John dislikes members of the Arawa minority although he has had little personal experience with them. Moreover, he believes that they are unkind towards strangers.”

Where 

“john” is the 13th entry in a list of names
“Arawa” is the 7th entry in a list of nonsense words for minorities and 
“are unkind to strangers” is the 5th entry in a list of phrases.


Thanks so much for taking the time to help me with this. I really appreciate it. I tried responding yesterday with a lengthy clarification but it was all lost when I tried to submit it (same thing happened today so I must be misunderstanding the quote option here)
  • Martin Jönsson
  • Martin Jönsson's Avatar
03 May 2023 13:08
Replied by Martin Jönsson on topic Customizing questions randomly and systematically

Yes, that's pretty close. Except that the variables are replaced by words and phrases in three separate lists wrote:

  • Joffm
  • Joffm's Avatar
02 May 2023 20:43 - 02 May 2023 20:43
Hi,
do you wish something like this?

Random selection of X and Y, but a constant Z 


And the next participant gets the next Z


Joffm
  • holch
  • holch's Avatar
02 May 2023 16:27
Questions that have the same name for the randomization group, will be randomized among the position of any question within this "randomization group". So if you don't want this, you have to give different names to the different randomization groups.
Displaying 646 - 654 out of 654 results.

Lime-years ahead

Online-surveys for every purse and purpose