how to display dynamically different title for each question group

Plus d'informations
il y a 2 semaines 1 jour #182965 par Engineerumair
COM_KUNENA_MESSAGE_CREATED_NEW
I need to create a survey where participants can respond to different question groups.

Here is what I need to do

I need to create questions for survey of course evaluation (Note : Questions are same for every Course)

suppose I have the following courses :

1) Image Processing 2) Computer Vision 3) Programming

Questions:


Please answer the questions for Image Processing

Q1 The course was completely delivered

1) Strongly Agree 2) Agree 3) Neutral 4) Disagree 5) Strongly Disagree

Q2 The teacher prepared well for the lecture

1) Strongly Agree 2) Agree 3) Neutral 4) Disagree 5) Strongly Disagree

Q3 You were active in the class

1) Strongly Agree 2) Agree 3) Neutral 4) Disagree 5) Strongly Disagree


Please answer the questions for Computer Vision

Q1 The course was completely delivered

1) Strongly Agree 2) Agree 3) Neutral 4) Disagree 5) Strongly Disagree

Q2 The teacher prepared well for the lecture

1) Strongly Agree 2) Agree 3) Neutral 4) Disagree 5) Strongly Disagree

Q3 You were active in the class

1) Strongly Agree 2) Agree 3) Neutral 4) Disagree 5) Strongly Disagree


and so on....


There are 100 participants, some enrolled in two courses and some in all

The participant can only respond to courses they are enrolled in (they should not see the question for the course they are not enrolled)


How can I achieve this with LimeSurvey existing feature.

Connexion ou Créer un compte pour participer à la conversation.

LimeSurvey Partners
Plus d'informations
il y a 2 semaines 13 heures #182971 par Joffm
COM_KUNENA_MESSAGE_REPLIED_NEW
Some respondents are enrolled in all courses.

So you have to create as many groups as there are courses.
(LimeSurvey does not support loops or blocks or whatever it is called in other tools.)
Therefore the title of your course group are static. No need to change something dynamically.

Set relevance equation to the groups depending either on token attributes (if your survey is token based) or on a first question where you ask the respondents which courses they are enrolled in.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 semaines 13 heures #182972 par Engineerumair
COM_KUNENA_MESSAGE_REPLIED_NEW
Joffm, can you please let me how to do this with token attributes.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 semaines 12 heures #182973 par Joffm
COM_KUNENA_MESSAGE_REPLIED_NEW
let each participant have as many token:attributes as there are courses.
Either the value is "1" = enrolled in course, or "0" = not enrolled.

E.g. Participant XXX is enrolled in courses "1" and "3":
In the participant table the values are
ATTRIBUTE_1: 1
ATTRIBUTE_2: 0
ATTRIBUTE_3: 1

And in the survey the group relevance equation
of course 1 will be "TOKEN:ATTRIBUTE_1==1",
of course 2 will be "TOKEN:ATTRIBUTE_2==1", and so

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 6 jours - il y a 1 semaine 6 jours #182978 par Engineerumair
COM_KUNENA_MESSAGE_REPLIED_NEW
Thanks, I have added attribute_1<class No> and it has value xyz

Then I added Relevance equation on question group as "Attribute_1 == xyz"

but it still shows the questions from the group, although the participant has different value in its attribute.
Last edit: il y a 1 semaine 6 jours by Engineerumair.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 6 jours #182979 par Joffm
COM_KUNENA_MESSAGE_REPLIED_NEW
There seem to be some big mistakes in spelling.

It is TOKEN:ATTRIBUTE_1, ..., as described here
https://manual.limesurvey.org/Email_templates#Email_placeholders


although if you upload a csv-file to the participants table it is different.

And what means "attribute_1<class No>"?

You should really send an example *.lss.

Best regards
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 6 jours #182982 par Engineerumair
COM_KUNENA_MESSAGE_REPLIED_NEW
attribute_1<classNo> : ClassNo is field description.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 6 jours #182984 par Joffm
COM_KUNENA_MESSAGE_REPLIED_NEW
Hi,
as long as you do not show us what you tried (obviously unsuccessful) it's difficult to help.

So, please, send your survey as *.lss.

You opened a lot of different post with your same problem (we know what you are going to achieve), but we can not see why your tries don't work.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 6 jours #182985 par Engineerumair
COM_KUNENA_MESSAGE_REPLIED_NEW
Here is my file pattern

tid firstname lastname email emailstatus token language validfrom validuntil invited reminded remindercount completed usesleft attribute_1 <ClassNo> attribute_2 <CMSID>
1 Maryam Xyz Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. OK 41843 en N N 0 N 1 1233


and I have also attached .ISS
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 6 jours #183008 par Joffm
COM_KUNENA_MESSAGE_REPLIED_NEW
Hi, thank you,
but this is different from the structure in your first post, isn't it?

And I do not see the groups with the identical questions for each course.

Okay, here is an example, how it can work.
The value of token attributes: 0="not enrolled", 1="enrolled"
1. group: Some generaL questions
2. group: questions about the course 1 (group relevance equation: TOKEN:ATTRIBUT_1==1)
3. group: questions about the course 2 (group relevance equation: TOKEN:ATTRIBUT_2==1)
4. group: questions about the course 3 (group relevance equation: TOKEN:ATTRIBUT_3==1)
5. group: questions about the course 4 (group relevance equation: TOKEN:ATTRIBUT_4==1)
6. group: Some questions to finish the survey

Furthermore I included a randomization of the course groups: Set "Courses" as "randomization group name" in each of them.

Here the structure (only important fields) of the participants table:


Example:

Fichier attaché :

Nom du fichier : limesurvey...3576.lss
Taille du ficher :26 ko


Regards
Joffm

P.S. The names of the courses are some of the UBUNTU version names.


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Pièces jointes :
Les utilisateur(s) suivant ont remercié: DenisChenu

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 6 jours #183025 par Engineerumair
COM_KUNENA_MESSAGE_REPLIED_NEW
Thanks Joffm, Yeah the questions are not Identical for but it would be

I need to have attribute for class number if participant attribute class number matches with group relevance then I will show otherwise won't.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 6 jours #183029 par Engineerumair
COM_KUNENA_MESSAGE_REPLIED_NEW
Thanks, it worked I have used one attribute (attribut_1 <ClassNo>) to allow participant to answer the questions to question group.

Note : Now I need to create more than 100 question groups for courses

I also need to add more attributes so that I can show statistics on the basis of that attributes.

I added some attributes such as department semester and year but didn't find option in statistics on the basis of attributes.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 6 jours - il y a 1 semaine 6 jours #183030 par Joffm
COM_KUNENA_MESSAGE_REPLIED_NEW
But no participant will be enrolled in 100 courses.
So it would be sufficient to create as many groups as the maximum of courses one participant can be enrolled in.
The rest can be made by micro-tayloring.
This is easier to implement in LS, but a lot more difficult to analyze. (you have to restructure everything)

There is another idea.

Create a "master survey" with some general questions at the beginning and all attributes you need.
Here you should create the Token attributes of courses as
ATTRIBUTE_1: 13
ATTRIBUTE_2: 34
ATTRIBUTE_2: 51
...
meaning the course no. the participant is enrolled in.

Create an equation ("courses") which joins the attributes to a string (here "013034051", leftpadded with "0" because you seem to have more than 100 courses.

Nothing else.
Now you link this survey to the "slave survey" and add two parameters to the end-url like:
"https://www.[myServer.com/mySlaveSurvey...?lang=en&newtest=Y&pSID={SAVEDID}&pCourse={courses}"

In the "slave survey" capture the two parameters. Then
take the first three characters of pCourse "substr(pCourse,0,3)" and remove them from pCourse "substr(pCourse,3)"
Now you have the number of the course and with micro-tayloring you are able to display the name of the course, and other details.
Ask your questions.
Then you link this survey to itself:
Again add the two parameters
"https://www.[myServer.com/mySlaveSurvey...?lang=en&newtest=Y&pSID={pSID}&pCourse={pCourse}"

With an if-statement remove the end-url if there is no more course.
This way you have only one group for unlimited courses.
In the dataset you will find one record for each course, with the course number and the SAVEDID.

You may have a look at a working example here:
I did not use tokens but a predefined string of capital letters. You may change it (from "A" to "Z")
the course names are the UBUNTU version names.

Sample survey
This will be active till Wednesday

Best regards
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: il y a 1 semaine 6 jours by Joffm.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 6 jours #183032 par Engineerumair
COM_KUNENA_MESSAGE_REPLIED_NEW
Thanks Joffm, with nice suggestion.

I am not able to understand that how and where to use substr in LimeSurvey
and my course id will be having 8 digits (4 digit for course id and 4 digits for term) eg (22131813) 1813 means fall18.


I also need to generate statistics reports on the basis of department, semester and year.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 5 jours #183039 par Joffm
COM_KUNENA_MESSAGE_REPLIED_NEW

my course id will be having 8 digits (4 digit for course id and 4 digits for term) eg (22131813)

But this is absolutely inessential for your survey as long as there is a unique relation between the real course ID and the code used in the survey.

and regarding "substr"
https://manual.limesurvey.org/Expression_Manager#Implemented_Functions
and
https://manual.limesurvey.org/Expression_Manager_examples#Examples_for_Expressions
or
https://www.php.net/manual/en/function.substr.php


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!