Welcome to the LimeSurvey Community Forum

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

how to display dynamically different title for each question group

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 weeks ago - 5 years 2 weeks ago #183030 by Joffm
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: 5 years 2 weeks ago by Joffm.
The topic has been locked.
  • Engineerumair
  • Engineerumair's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 2 weeks ago #183032 by Engineerumair
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.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 weeks ago #183039 by Joffm

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"
manual.limesurvey.org/Expression_Manager#Implemented_Functions
and
manual.limesurvey.org/Expression_Manager...ples_for_Expressions
or
www.php.net/manual/en/function.substr.php

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Engineerumair
  • Engineerumair's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 2 weeks ago #183045 by Engineerumair
It is essential because courseID repeats after every semester and I need to have after every session so, to make it unique I need to concatenate term number e.g : 12331811, 12331813 for spring and fall 18 sessions.


But the important thing is how to get statistics on the basis of participant attribute.
The topic has been locked.
  • Engineerumair
  • Engineerumair's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 2 weeks ago #183046 by Engineerumair
Can you please also let me know, that how to link slave survey with master and how to add parameters to the end of URL.

thanks
The topic has been locked.
  • Engineerumair
  • Engineerumair's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 2 weeks ago #183159 by Engineerumair
Hello Joffm,
Thanks for the replies till now.

I need to change the scenario

The person I invite for invitation, after entering token he will be asked to select the department

after selecting department the courses will be shown that he is enrolled in and he will answer the questions one by one.

Note : Two or more courses with the same name can offered in multiple departments

Student of one department can't answer for the course in another department (same name nor any)
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 weeks ago #183162 by Joffm
1. end-url
manual.limesurvey.org/URL_fields
manual.limesurvey.org/Panel_integration

2. Departments: That is just a database field that you will need later to analyze. And IMO you know in which department the students are, don't you. Then it is just one more token_attribute, not necessary to ask.

But: How does your program know which courses they are enrolled in?
How are you going to handle that?

And one important question: How many courses do you talk about?
You said, there is the same course no. in different semesters. So, how many per semester? 50, 100, 500, or more than 1000 (because of the four digit course no)?
Can you imagine a maximum number of courses a student is enrolled in?

Joffm

You should start with the "master" survey. The department is saved here; it is identical for all courses.
You only need to get one thing: list of course no. of this student.

If you finished that, create the slave survey with only one sequence of the questions.

Having finished that, send it as *.lss

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Engineerumair
  • Engineerumair's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 2 weeks ago #183165 by Engineerumair
It will add one attribute for department and 8 for courses enrolled course 1 , 2 ,3 and so on. (The student can be enrolled in maximum 5 but with lab it can be 8)

Definitely I can find the students enrolled courses on the basis of course id attributes in participant data file.

Course Numbers can be repeated in next term that's why I need to concatenate term number with it as I mentioned before (19112233 the first four is for term)

I need that my slave survey should only present the survey for the courses he is enrolled in on the basis of department he is from.

I can create a master survey with departments to show and he can select

I can create a slave survey with end url but not know how to link.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 weeks ago - 5 years 2 weeks ago #183168 by Joffm
Okay,
do it, send it.
The linking is the next step.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 years 2 weeks ago by Joffm.
The topic has been locked.
  • Engineerumair
  • Engineerumair's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 2 weeks ago #183185 by Engineerumair
Hello Joffm,

I have create two surveys both with participants and tokens, please see the attached files
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 weeks ago #183203 by Joffm
Hi,
this morning I have meeting with my doc.
Later I will have a look.

One last question to understand the terminology:
the first four digits are the course no. the next are the year and semester.
So, 11111711 would mean: this is course 1111 which started in spring 2017 and might last for 2 years..
A student can be enrolled in a course that started spring 2017, and in one that started in fall 2017.

It is not the actual semester when the student answers it?
That the course no is 11111811 if the student answers in spring 2018 and 1111813 if the student answers in fall 2018?

To be able to analyze later you should split this course ID into three columns "year", "semester", "course".


Just saw your master.
Don't you know in which department the student is?
I think you know which courses the student is enrolled in?
This should be available from the administration.
And where do you use tokens in your master survey? It's just one question for the department.
And at the end of the master you have to know which courses are evaluated by this student.


Or do you want to conduct the survey as an open survey? The students have to select their departemnt and their courses by themselves?
In this case forget about tokens.
Then ask for the department and afterwards display a multiple question with all possible courses with subquestion relevances that only courses of the selected department are displayed.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Engineerumair
  • Engineerumair's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 2 weeks ago #183206 by Engineerumair
Thanks Joffm,
The first four digits are for term 1811 means spring 18 and 1813 means fall 18
the next four are courseNumbers.

The student can only evaluate in the current term because the course offers in the current has course id different in next term.
e.g : Machine Learning offered in 1811 has course id 1224 and in 1911 has course id 1532.

Yeah I need to make it open survey where student can select their department and his courses will shown to evaluate.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose